summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-08-19 20:59:33 +0000
committerrodri <rgl@antares-labs.eu>2023-08-19 20:59:33 +0000
commitf9d08c0d2051b81bd0cbe075d54a82f79387ed83 (patch)
tree666142a4f8f49498c14c395daba2f72d34d2ca54
parent1e256e1f0adf0d230597138a3f02a92291924c5f (diff)
downloadstalker-f9d08c0d2051b81bd0cbe075d54a82f79387ed83.tar.gz
stalker-f9d08c0d2051b81bd0cbe075d54a82f79387ed83.tar.bz2
stalker-f9d08c0d2051b81bd0cbe075d54a82f79387ed83.zip
wrote a generic mkfile for both binaries and scripts.HEADmaster
-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