-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
45 lines (33 loc) · 1.2 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
build: mulang
test: test1
test1: FORCE mulang
cd test/1; rm -rf var/build-* var/target* var/out.sh
cd test/1; ../../mulang
./test/1/var/out.sh > test/1/var/result.txt
diff -u test/1/etc/expected.txt test/1/var/result.txt
echo OK
test4: FORCE var/out-devel.3.sh
cd test/1; rm -rf var/build-* var/target* var/out-devel.sh
cd test/1; ../../var/out-devel.3.sh --devel
./test/1/var/out-devel.sh > test/1/var/result.txt
diff -u test/1/etc/expected.txt test/1/var/result.txt
echo OK
mulang: var/out.3.sh
cp var/out.3.sh mulang
var/out.0.sh: ./etc/mulang-last
mkdir -p var
cp ./etc/mulang-last var/out.0.sh
var/out.1.sh: FORCE var/out.0.sh
./var/out.0.sh
if [ ! -e $@ ] || ! cmp -s var/out.sh $@; then mv var/out.sh $@; else rm var/out.sh; fi
var/out.2.sh: var/out.1.sh
./var/out.1.sh
if [ ! -e $@ ] || ! cmp -s var/out.sh $@; then mv var/out.sh $@; else rm var/out.sh; fi
var/out.3.sh: var/out.2.sh
./var/out.2.sh
cmp -s var/out.sh var/out.2.sh
if [ ! -e $@ ] || ! cmp -s var/out.sh $@; then mv var/out.sh $@; else rm var/out.sh; fi
var/out-devel.3.sh: var/out.3.sh
./var/out.3.sh --devel
if [ ! -e $@ ] || ! cmp -s var/out-devel.sh $@; then mv var/out-devel.sh $@; else rm var/out-devel.sh; fi
FORCE: