-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
105 lines (80 loc) · 2.31 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
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
# This is a simple Makefile to execute the most common build-related commands
# for SmartVideo.
# Run shell as bash to keep things consistent everywhere...
SHELL := /bin/bash
# Comment this out to see more verbose makefiles...
HUSH := @
# See if we're on Mac or Windows...
_UNAME_RESULT := $(shell uname)
ifeq ($(_UNAME_RESULT),Darwin)
PLATFORM := Mac
DLL_EXT := dylib
BIN_EXT := so
else
PLATFORM := Win
DLL_EXT := dll
endif
# We want local video incorporated when building smartvideo
export LOCAL_CAMERA_SUPPORT = 1
# We'll clean out .pyc files in these directories...
cleanPycDirs := appCommon backEnd devTools frontEnd \
markup vitaToolbox pilMac pilWin \
pyaudioMac pyaudioWin webstuffMac webstuffWin launch \
netifacesMac netifacesWin xnat
.PHONY : all
all: frontEnd
@echo "Done!"
test_%:
$(HUSH) \
set -e; \
source setupEnvironment; \
$(MAKE) -C $* test;
clean_%:
$(HUSH) \
set -e; \
source setupEnvironment; \
$(MAKE) -C $* clean;
.PHONY : clean
clean:
$(HUSH) \
set -e; \
source setupEnvironment; \
for subLibrary in $(subLibraries); do \
if [ -e "$$subLibrary" ]; then \
echo "...cleaning $$subLibrary"; \
$(MAKE) -C $$subLibrary clean; \
fi; \
done
@echo '...clearing out sessions and generated files'
$(HUSH)rm -rf sessions/
$(HUSH)rm -rf build/
$(HUSH)find . -name .DS_Store -exec rm -vf "{}" \;
$(HUSH)rm -f *.pyc *.pyo *.poic
$(HUSH)rm -f *.iss .DS_Store
$(HUSH)rm -f *~
$(HUSH) \
for pycDir in $(cleanPycDirs); do \
if [ -e $$pycDir ]; then \
echo "......cleaning pyc/pyo from $$pycDir"; \
find $$pycDir '(' -name '*\.pyc' -or -name '*\.pyo' ')' -exec \
rm {} '+'; \
fi; \
done
.PHONY : realclean realClean
realclean realClean: clean
@echo '...deleting old analysis'
$(HUSH)rm -rf oldAnalysis
$(HUSH)rm -f .oldRevNum
.PHONY : metricsQuick metricsBaseline metricsDaily
metricsQuick:
sh devTools/RunMetrics.sh quick
metricsBaseline:
sh devTools/RunMetrics.sh baseline
metricsDaily:
sh devTools/RunMetrics.sh daily
# Sub projects which might or might not be there...
-include frontEnd/FrontEnd.mk
# Useful debugging rule: Typing 'make show_VARS' will show you
# the value of VARS in the makefile...
show_%:
@echo "$* = $($*)"