-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmkfile
68 lines (57 loc) · 907 Bytes
/
mkfile
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
</$objtype/mkfile
BIN=/$objtype/bin/git
TARG=\
conf\
fetch\
fs\
query\
save\
send\
walk\
RC=\
add\
branch\
clone\
commit\
diff\
export\
import\
init\
log\
merge\
pull\
push\
OFILES=\
date.$O\
objset.$O\
ols.$O\
pack.$O\
proto.$O\
util.$O\
ref.$O
HFILES=git.h
</sys/src/cmd/mkmany
# Override install target to install rc.
install:V:
mkdir -p $BIN
for (i in $TARG)
mk $MKFLAGS $i.install
for (i in $RC)
mk $MKFLAGS $i.rcinstall
cp git.1 /sys/man/1/git
mk $MKFLAGS /sys/lib/git/template
uninstall:V:
rm -rf $BIN /sys/lib/git
%.c %.h: %.y
$YACC $YFLAGS -D1 -d -s $stem $prereq
mv $stem.tab.c $stem.c
mv $stem.tab.h $stem.h
%.c %.h: %.y
$YACC $YFLAGS -D1 -d -s $stem $prereq
mv $stem.tab.c $stem.c
mv $stem.tab.h $stem.h
%.rcinstall:V:
cp $stem $BIN/$stem
/sys/lib/git/template: template
mkdir -p /sys/lib/git/template
dircp template /sys/lib/git/template