summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--6/mkfile3
-rw-r--r--doc/mkfile2
-rwxr-xr-xmbldwrap.sh1
-rw-r--r--mi/mkfile5
-rw-r--r--mkfile2
-rw-r--r--muse/mkfile3
-rw-r--r--parse/mkfile4
-rw-r--r--rt/mkfile3
8 files changed, 21 insertions, 2 deletions
diff --git a/6/mkfile b/6/mkfile
index f894742..6022d5f 100644
--- a/6/mkfile
+++ b/6/mkfile
@@ -22,3 +22,6 @@ HFILES=asm.h ../parse/parse.h ../mi/mi.h ../config.h
BIN=/$objtype/bin
</sys/src/cmd/mkone
+
+uninstall:V:
+ rm -f /$objtype/bin/$TARG
diff --git a/doc/mkfile b/doc/mkfile
index eff9f15..d60b828 100644
--- a/doc/mkfile
+++ b/doc/mkfile
@@ -7,6 +7,8 @@ all:V: $MANS
install:V: $MANS
+uninstall:V: $MANS
+
nuke:V: $MANS
clean:V: $MANS
diff --git a/mbldwrap.sh b/mbldwrap.sh
index 83de5bf..67df7c2 100755
--- a/mbldwrap.sh
+++ b/mbldwrap.sh
@@ -16,3 +16,4 @@ else
export MYR_RT=../rt/_myrrt.o
./bootstrap.sh
fi
+exit 0
diff --git a/mi/mkfile b/mi/mkfile
index 81ab425..f2af66d 100644
--- a/mi/mkfile
+++ b/mi/mkfile
@@ -15,3 +15,8 @@ HFILES=mi.h ../config.h ../parse/parse.h
</sys/src/cmd/mklib
+install:V: $LIB
+ touch $LIB
+
+uninstall:V:
+ echo $LIB: nothing to uninstall
diff --git a/mkfile b/mkfile
index cc5f475..ee86351 100644
--- a/mkfile
+++ b/mkfile
@@ -40,7 +40,7 @@ install:V: $SUB config.h
uninstall:V: $SUB config.h
for(dir in $SUB)@{
cd $dir
- mk $MKFLAGS
+ mk $MKFLAGS uninstall
}
ape/psh mbldwrap.sh uninstall
diff --git a/muse/mkfile b/muse/mkfile
index 9f55de9..c6d1df8 100644
--- a/muse/mkfile
+++ b/muse/mkfile
@@ -11,3 +11,6 @@ LIB=../parse/libparse.a
BIN=/$objtype/bin
</sys/src/cmd/mkone
+
+uninstall:
+ rm -f /$objtype/bin/$TARG
diff --git a/parse/mkfile b/parse/mkfile
index 415cae3..6be40db 100644
--- a/parse/mkfile
+++ b/parse/mkfile
@@ -25,7 +25,9 @@ CLEANFILES=gram.c gram.h
install:V: $LIB
touch $LIB
-
+
+uninstall:V:
+ echo nothing to uninstall
gram.c gram.h: gram.y
yacc -d -S gram.y
diff --git a/rt/mkfile b/rt/mkfile
index 5dbfa68..e454441 100644
--- a/rt/mkfile
+++ b/rt/mkfile
@@ -9,6 +9,9 @@ install:V:
mkdir -p /$objtype/lib/myr
cp _myrrt.$O /$objtype/lib/myr
+uninstall:V:
+ rm -f /$objtype/lib/myr/_myrrt.$O
+
clean:V:
rm -f _myrrt.$O