-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBuildfile
112 lines (86 loc) · 2.65 KB
/
Buildfile
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
include make.defs
SUBDIRS = src
detect:
@echo "Autodectected version info:"
@echo " "PYTHONVER=$(PYTHONVER)
@echo " "PYTHONEXE=$(PYTHONEXE)
@echo " "PYPEDIR=$(PYPEDIR)
checkconfig:
./configinfo
setenv:
@echo "setenv PYTHONVER $(PYTHONVER)"
@echo "setenv PYTHONEXE $(PYTHONEXE)"
@echo "setenv PYPEDIR $(PYPEDIR)"
all: install wrapper docs clobber
all-nodacq: install-nodacq wrapper
install:
@for i in $(SUBDIRS); \
do (cd $$i ; $(MAKE) install);\
done
(cd $(PYPEDIR); $(PYCOMPILE) -q pype || $(PYCOMPILE) pype)
(cd $(PYPEDIR); $(PYCOMPILE) -q Tasks || $(PYCOMPILE) Tasks)
install-nodacq:
@for i in $(SUBDIRS); \
do (cd $$i ; $(MAKE) install-nodacq);\
done
(cd $(PYPEDIR); $(PYCOMPILE) -q pype || $(PYCOMPILE) pype)
(cd $(PYPEDIR); $(PYCOMPILE) -q Tasks || $(PYCOMPILE) Tasks)
install-shared:
@for i in $(SUBDIRS); \
do (cd $$i ; $(MAKE) install-shared);\
done
(cd $(PYPEDIR); $(PYCOMPILE) -q pype || $(PYCOMPILE) pype)
(cd $(PYPEDIR); $(PYCOMPILE) -q Tasks || $(PYCOMPILE) Tasks)
justbuild:
@for i in $(SUBDIRS); \
do (cd $$i ; $(MAKE) build);\
done
(cd $(PYPEDIR); $(PYCOMPILE) -q pype || $(PYCOMPILE) pype)
(cd $(PYPEDIR); $(PYCOMPILE) -q Tasks || $(PYCOMPILE) Tasks)
p2m:
(cd src; $(MAKE) install-p2m)
pycompile:
(cd $(PYPEDIR); $(PYCOMPILE) -q pype || $(PYCOMPILE) pype)
(cd $(PYPEDIR); $(PYCOMPILE) -q Tasks || $(PYCOMPILE) Tasks)
wrapper:
ifeq ($(WHO),root)
(cd src/wrapper ; $(MAKE) install)
else
@echo "Must be root to install wrapper."
endif
# clean: all the pype src directories
# the find command is slowest here..
clean:
@echo "Cleaning temp files..."
@find . -name core -o -name music.raw -o -name \*.pyc | xargs rm -f
@echo "Cleaning subdirs..."
@for i in $(SUBDIRS); \
do (cd $$i ; echo ...Cleaning $$i ; $(MAKE) clean);\
done
@cd src/wrapper ; $(MAKE) clean
clobber: clean
docs:
ls ./src/pype/*.py | \
grep -v gracePlot.py | grep -v grace_np.py | grep -v blt | \
grep -v PlexHeaders.py | grep -v pstat.py | grep -v stats.py | \
grep -v mplot.py | grep -v stimlib.py | \
grep -v __init__.py | \
xargs epydoc --docformat "restructuredtext en" --html \
--simple-term --parse-only -v --no-private \
-o $(PYPEDIR)/docs -n pype
date > $(PYPEDIR)/docs/GENERATED
###############################################################
uninstall:
echo "Uninstall must be done manually!"
.PHONY: install
###############################################################
# useful svn targets
#
# these are not used, but probably should be...
#
unstable:
@if [ -e RELEASE ]; then svn mv RELEASE UNSTABLE; fi
@echo UNSTABLE
stable:
@if [ -e UNSTABLE ]; then svn mv UNSTABLE RELEASE; fi
@echo RELEASE