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 0f2c15d was
4025019,
checked in by Mathieu Doucet <doucetm@…>, 13 years ago
|
Adding util and park
|
-
Property mode set to
100644
|
File size:
1.8 KB
|
Rev | Line | |
---|
[4025019] | 1 | SUBDIRS = |
---|
| 2 | |
---|
| 3 | .PHONY: $(SUBDIRS) |
---|
| 4 | |
---|
| 5 | VERSION=1.2 |
---|
| 6 | |
---|
| 7 | # make executable files under Windows |
---|
| 8 | all: park |
---|
| 9 | |
---|
| 10 | park: |
---|
| 11 | python setup.py install |
---|
| 12 | |
---|
| 13 | parkwin: |
---|
| 14 | rm -rf MANIFEST |
---|
| 15 | python setup_win.py py2exe |
---|
| 16 | |
---|
| 17 | # clean temporary and pyc files |
---|
| 18 | clean: $(SUBDIRS) |
---|
| 19 | $(RM) *~ *.pyc |
---|
| 20 | |
---|
| 21 | # clean temporary and pyc files, and dist/, build/ |
---|
| 22 | cleanall: $(SUBDIRS) |
---|
| 23 | $(RM) *~ *.pyc |
---|
| 24 | $(RM) -rf dist |
---|
| 25 | $(RM) -rf build |
---|
| 26 | $(RM) MANIFEST |
---|
| 27 | |
---|
| 28 | # make documents |
---|
| 29 | html: |
---|
| 30 | $(RM) -rf build/html |
---|
| 31 | epydoc --html park --name PARK -o build/html -v --config=park.epydoc |
---|
| 32 | |
---|
| 33 | pdf: |
---|
| 34 | $(RM) -rf build/docpdf |
---|
| 35 | epydoc --pdf park --name PARK -o build/pdf --config=park.epydoc |
---|
| 36 | |
---|
| 37 | # make distributions for source code and windows executable files |
---|
| 38 | distall: |
---|
| 39 | $(RM) -rf dist |
---|
| 40 | $(RM) -rf build |
---|
| 41 | |
---|
| 42 | $(RM) -rf MANIFEST |
---|
| 43 | ./setup_fit.py sdist --formats=gztar,bztar,zip |
---|
| 44 | |
---|
| 45 | $(RM) -rf MANIFEST |
---|
| 46 | ./setup_gui.py sdist --formats=gztar,bztar,zip |
---|
| 47 | |
---|
| 48 | $(RM) -rf MANIFEST |
---|
| 49 | python setup.py bdist_wininst |
---|
| 50 | python setup_win.py py2exe |
---|
| 51 | |
---|
| 52 | # make source code distributions for all platforms |
---|
| 53 | distsrc: |
---|
| 54 | $(RM) -rf dist |
---|
| 55 | $(RM) -rf build |
---|
| 56 | |
---|
| 57 | $(RM) -rf MANIFEST |
---|
| 58 | ./setup_fit.py sdist --formats=gztar,bztar,zip |
---|
| 59 | |
---|
| 60 | $(RM) -rf MANIFEST |
---|
| 61 | ./setup_gui.py sdist --formats=gztar,bztar,zip |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | # script-based PARK |
---|
| 65 | distfit: |
---|
| 66 | $(RM) -rf MANIFEST |
---|
| 67 | ./setup_fit.py sdist --formats=gztar,bztar,zip |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | # GUI-based PARK |
---|
| 71 | distgui: |
---|
| 72 | $(RM) -rf MANIFEST |
---|
| 73 | ./setup_gui.py sdist --formats=gztar,bztar,zip |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | # make source code distributions for Unix |
---|
| 77 | distunix:distsrc |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | # make distributions for Windows, installer or executable file |
---|
| 81 | distwin: |
---|
| 82 | rm -rf dist |
---|
| 83 | python setup_win.py py2exe |
---|
| 84 | mv dist park-$(VERSION) |
---|
| 85 | zip -r park-$(VERSION).exe.zip park-$(VERSION) |
---|
| 86 | mkdir dist |
---|
| 87 | mv park-$(VERSION).exe.zip dist |
---|
| 88 | rm -rf park-$(VERSION) |
---|
| 89 | ./setup.py bdist_wininst |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | # recursive works for individual subdirectory |
---|
| 93 | $(SUBDIRS): |
---|
| 94 | cd $@ && $(MAKE) $(MAKECMDGOALS) |
---|
| 95 | |
---|
Note: See
TracBrowser
for help on using the repository browser.