-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.srcs.do
49 lines (45 loc) · 1.23 KB
/
default.srcs.do
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
#!/bin/sh
allsrcsf=all.srcs
allsrcs() {
while read l
do
printf '%s\n' "$l"
done <<- EOF
deeworlds.c util.h draw.h world.h input.h deeworldsConfig.h \
glad/include/glad/gl.h
draw.c util.h draw.h drawUtil.h drawLoad.h vecmath.h world.h \
shaders/vert.shdStr shaders/frag.shdStr \
glad/include/glad/gl.h
drawLoad.c util.h drawLoad.h do.h
drawUtil.c util.h drawUtil.h glad/include/glad/gl.h
input.c util.h vecmath.h world.h playerAction.h input.h \
inputConfig.h do.h
player.c util.h vecmath.h worldParams.h player.h do.h
playerAction.c util.h vecmath.h world.h worldParams.h \
player.h playerAction.h do.h
vecmath.c util.h vecmath.h do.h
world.c util.h vecmath.h world.h worldParams.h \
worldConfig.h player.h do.h
glad/src/gl.c glad/include/glad/gl.h
EOF
}
deeworldsSrcs() {
for src in deeworlds.c draw.c drawLoad.c drawUtil.c input.c \
player.c playerAction.c vecmath.c world.c glad/src/gl.c
do
grep "^$src\>" $1
done
}
case $2 in
(all)
allsrcs
;;
(deeworlds)
redo-ifchange $allsrcsf
deeworldsSrcs $allsrcsf
;;
(*)
printf '%s\n' "unknown target: $ (or none given)" >&2
exit 1
;;
esac