</$objtype/mkfile
BIN=/$objtype/bin/git
TARG=\
conf\
get\
fs\
log\
query\
repack\
save\
send\
serve\
walk
RCFILES=\
add\
branch\
clone\
commit\
compat\
diff\
export\
hist\
import\
init\
merge\
pull\
push\
rebase\
revert\
rm
OFILES=\
bio.$O\
delta.$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
mkdir -p /sys/lib/git
for (i in $TARG)
mk $MKFLAGS $i.install
for (i in $RCFILES)
mk $MKFLAGS $i.rcinstall
cp common.rc /sys/lib/git/common.rc
chmod +x /sys/lib/git/common.rc
%.rcinstall:V:
cp $stem $BIN/$stem
chmod +x $BIN/$stem
clean:V:
/bin/rm -f *.[$OS] *.a[$OS] y.tab.? lex.yy.c y.debug y.output [$OS].??* $PROGS $CLEANFILES
|