-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
79 lines (62 loc) · 2.13 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Makefile for satstress
SHELL = /bin/sh
SSDIR = satstress
# Python modules for which we are making documentation:
EPYDOC_MODS = $(SSDIR)/satstress.py\
$(SSDIR)/gridcalc.py\
$(SSDIR)/__init__.py
# Source files that are included in the current release:
PUB_SRC = $(EPYDOC_MODS)\
$(SSDIR)/physcon.py\
$(SSDIR)/love/john_wahr/love.f\
test/test_nsr_diurnal.py\
test/test_nsr_diurnal.pkl\
input/Europa.satellite\
input/NSR_Diurnal_exhaustive.grid
EPYDOC_OPTS = --verbose\
--css=doc/css/satstress.css\
--name=satstress\
--url=http://code.google.com/p/satstress\
--inheritance=grouped\
--no-private
# love is built down in this directory, which has its own Makefile:
love : satstress/love/john_wahr/love.f
(cd satstress/love/john_wahr; make love)
# Generate all of the HTML documentation based on the Python __doc__ strings:
htmldoc : $(EPYDOC_MODS) doc/css/satstress.css
epydoc --html --output=doc/html $(EPYDOC_OPTS) $(EPYDOC_MODS)
# Make PDF documentation based on the Python __doc__ strings:
pdfdoc : $(EPYDOC_MODS)
epydoc --pdf --output=doc/pdf $(EPYDOC_OPTS) $(EPYDOC_MODS)
# Check the documentation for completeness:
doccheck : $(EPYDOC_MODS)
epydoc --check $(EPYDOC_OPTS) $(EPYDOC_MODS)
# Get rid of all the documentation:
docclean :
rm -f doc/html/* doc/pdf/*
# Make all forms of documentation, and check it:
doc : htmldoc pdfdoc doccheck
# See if satstress is working:
check : love $(PUB_SRC)
python test/test_nsr_diurnal.py
# An alias for check:
test : check
# Get rid of random junk:
clean :
rm -rf *~ *.pyc lovetmp-* *.nc
(cd $(SSDIR); rm -rf *~ *.pyc lovetmp-* *.nc)
rm -rf dist
rm -rf build
rm -f MANIFEST
# Get rid of all non-source files
realclean : clean docclean
rm -rf $(SSDIR)/love/*/calcLove*
# Restore the package to pristene condition:
distclean : realclean htmldoc
dist : distclean $(PUB_SRC)
python setup.py sdist
install : love $(PUB_SRC)
python setup.py install
uninstall :
rm -rf /usr/local/bin/calcLoveWahr4Layer
rm -rf /Library/Python/2.5/site-packages/satstress*