source: sasview/build_tools/Makefile_RHEL7 @ 9586bf9

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 9586bf9 was 9586bf9, 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 := '../../'
8all: postproc
9       
10check:
11        # Check dependencies
12        @cd ..; python check_packages.py
13       
14sasmodels/core:
15        cd ${prefix}sasmodels; rm -rf build
16        cd ${prefix}sasmodels; rm -rf dist
17        cd ${prefix}sasmodels; python setup.py clean
18        cd ${prefix}sasmodels; python setup.py build
19
20sasmodels/docs:
21        cd ${prefix}sasmodels/doc; make html
22       
23sasmodels: sasmodels/core sasmodels/docs
24        @rm -rf ${prefix}sasmodels/build
25        @rm -rf ${prefix}sasmodels/dist
26        cd ${prefix}sasmodels; python setup.py bdist_egg
27
28sasview:
29        @rm -rf ../build
30        @rm -rf ../dist
31        @cd ..; python setup.py build docs bdist_egg
32
33rpm:
34        @echo "Creating RPMs"
35        rm -rf ../build/sasview
36        mkdir ../build/sasview
37        cp -pr ../dist/sasview*.egg ../build/sasview
38        cp -pr ${prefix}sasmodels/dist/sasmodels*.egg ../build/sasview
39
40        cd ../build;tar -czf ~/rpmbuild/SOURCES/sasview.tgz sasview
41        rpmbuild -ba sasview.spec
42       
43.PHONY: check
44.PHONY: sasview
45.PHONY: rpm
46.PHONY: sasmodels
Note: See TracBrowser for help on using the repository browser.