aboutsummaryrefslogtreecommitdiff
path: root/mkfile
diff options
context:
space:
mode:
Diffstat (limited to 'mkfile')
-rw-r--r--mkfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/mkfile b/mkfile
index c9c09ff..7b27036 100644
--- a/mkfile
+++ b/mkfile
@@ -1,5 +1,6 @@
</$objtype/mkfile
+MAN=/sys/man/1
BIN=/$objtype/bin/games
TARG=\
musw\
@@ -17,4 +18,22 @@ HFILES=\
dat.h\
fns.h\
+LIB=\
+ libgeometry/libgeometry.a$O\
+
</sys/src/cmd/mkmany
+
+libgeometry/libgeometry.a$O: pulldeps
+ cd libgeometry
+ mk install
+
+pulldeps:V:
+ ! test -d libgeometry && git/clone https://github.com/sametsisartenep/libgeometry || echo >/dev/null
+
+install:V: man
+
+uninstall:V:
+ for(i in $TARG){
+ rm -f $BIN/$i
+ rm -f $MAN/$i
+ }