source: sasview/build_tools/Makefile_RHEL7 @ 7949dcf7

Last change on this file since 7949dcf7 was 7235c57, checked in by Mathieu Doucet <doucetm@…>, 8 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
5site_packages := `python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`
6
7prefix := '../../'
8       
9check:
10        # Check dependencies
11        @cd ..; python check_packages.py
12       
13sasmodels/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
19sasmodels/docs:
20        cd ${prefix}sasmodels/doc; make html
21       
22sasmodels: 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
27sasview:
28        @rm -rf ../build
29        @rm -rf ../dist
30        @cd ..; python setup.py build docs bdist_egg
31
32rpm:
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.