summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall11
-rw-r--r--mkfile13
2 files changed, 11 insertions, 13 deletions
diff --git a/install b/install
deleted file mode 100755
index 06a5f25..0000000
--- a/install
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/rc
-. <{cat /$objtype/mkfile | grep -v '^<'}
-
-RCBIN=$home/bin/rc/stalker
-
-if(! test -d $RCBIN)
- mkdir $RCBIN
-mk
-cp $O.out $RCBIN/geoparse
-cp geolocate $RCBIN
-mk clean
diff --git a/mkfile b/mkfile
index a7f1ef8..7db0a16 100644
--- a/mkfile
+++ b/mkfile
@@ -1,9 +1,18 @@
</$objtype/mkfile
-BIN=/$objtype/bin
+BIN=$home/bin/$objtype/stalker
+TARG=geoparse
OFILES=\
geoparse.$O
-TARG=geoparse
+RCBIN=$home/bin/rc/stalker
+RCSCR=\
+ geolocate
</sys/src/cmd/mkone
+
+install:V: $BIN/$TARG
+ cp $RCSCR $RCBIN
+
+uninstall:V:
+ rm -f $BIN/$TARG $RCBIN/$RCSCR