-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
43 lines (34 loc) · 956 Bytes
/
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
binPath = ./bin
files:=jobTreeRun jobTreeStatus jobTreeKill jobTreeStats multijob jobTreeTest_Dependencies.py scriptTreeTest_Wrapper.py scriptTreeTest_Wrapper2.py scriptTreeTest_Sort.py
.PHONY: all test clean
all : $(foreach j,${files}, ${binPath}/$j)
${binPath}/% : src/%.py
mkdir -p $(dir $@)
cp $< [email protected]
mv [email protected] $@
chmod +x $@
${binPath}/multijob : batchSystems/multijob.py
mkdir -p $(dir $@)
cp $< [email protected]
mv [email protected] $@
chmod +x $@
${binPath}/jobTreeTest_%.py : test/jobTreeTest_%.py
mkdir -p $(dir $@)
cp $< [email protected]
mv [email protected] $@
chmod +x $@
${binPath}/scriptTreeTest_%.py : test/scriptTreeTest_%.py
mkdir -p $(dir $@)
cp $< [email protected]
mv [email protected] $@
chmod +x $@
${binPath}/scriptTreeTest_Sort.py : test/sort/scriptTreeTest_Sort.py
mkdir -p $(dir $@)
cp $< [email protected]
mv [email protected] $@
chmod +x $@
clean :
rm -rf ${binPath}/
test :
#Running python allTests.py
PYTHONPATH=.. PATH=../../bin:$$PATH python allTests.py --testLength=SHORT