ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change
on this file since b685c7b was
7235c57,
checked in by Mathieu Doucet <doucetm@…>, 9 years ago
|
Add RHEL7 makefile
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | # For the docs to build and go in the right place, docs/sphinx-docs/build_sphinx.py |
---|
2 | # has to be modified with |
---|
3 | # SASVIEW_DOCS = os.path.join(SASVIEW_BUILD, "sas/sasview/doc") |
---|
4 | |
---|
5 | site_packages := `python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"` |
---|
6 | |
---|
7 | prefix := '../../' |
---|
8 | |
---|
9 | check: |
---|
10 | # Check dependencies |
---|
11 | @cd ..; python check_packages.py |
---|
12 | |
---|
13 | sasmodels/core: |
---|
14 | cd ${prefix}sasmodels; rm -rf build |
---|
15 | cd ${prefix}sasmodels; rm -rf dist |
---|
16 | cd ${prefix}sasmodels; python setup.py clean |
---|
17 | cd ${prefix}sasmodels; python setup.py build |
---|
18 | |
---|
19 | sasmodels/docs: |
---|
20 | cd ${prefix}sasmodels/doc; make html |
---|
21 | |
---|
22 | sasmodels: sasmodels/core sasmodels/docs |
---|
23 | @rm -rf ${prefix}sasmodels/build |
---|
24 | @rm -rf ${prefix}sasmodels/dist |
---|
25 | cd ${prefix}sasmodels; python setup.py bdist_egg |
---|
26 | |
---|
27 | sasview: |
---|
28 | @rm -rf ../build |
---|
29 | @rm -rf ../dist |
---|
30 | @cd ..; python setup.py build docs bdist_egg |
---|
31 | |
---|
32 | rpm: |
---|
33 | @echo "Creating RPMs" |
---|
34 | rm -rf ../build/sasview |
---|
35 | mkdir ../build/sasview |
---|
36 | cp -pr ../dist/sasview*.egg ../build/sasview |
---|
37 | cp -pr ${prefix}sasmodels/dist/sasmodels*.egg ../build/sasview |
---|
38 | |
---|
39 | cd ../build;tar -czf ~/rpmbuild/SOURCES/sasview.tgz sasview |
---|
40 | rpmbuild -ba sasview.spec |
---|
41 | |
---|
42 | .PHONY: check |
---|
43 | .PHONY: sasview |
---|
44 | .PHONY: rpm |
---|
45 | .PHONY: sasmodels |
---|
Note: See
TracBrowser
for help on using the repository browser.