aboutsummaryrefslogtreecommitdiff
path: root/src/mkfile
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-11-23 18:10:54 +0000
committerrsc <devnull@localhost>2003-11-23 18:10:54 +0000
commit5c34ff9e1c19fd73ccc79c0f702f7c4b964840d1 (patch)
tree808a906913b9b82866dd9c9bf62434ecca5fe55d /src/mkfile
parentbc7cb1a15a67c859c8c71c4b52bb35fe9425a63d (diff)
downloadplan9port-5c34ff9e1c19fd73ccc79c0f702f7c4b964840d1.tar.gz
plan9port-5c34ff9e1c19fd73ccc79c0f702f7c4b964840d1.tar.bz2
plan9port-5c34ff9e1c19fd73ccc79c0f702f7c4b964840d1.zip
make -> mk
Diffstat (limited to 'src/mkfile')
-rw-r--r--src/mkfile53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/mkfile b/src/mkfile
new file mode 100644
index 00000000..6740a002
--- /dev/null
+++ b/src/mkfile
@@ -0,0 +1,53 @@
+DIRS=\
+ lib9\
+ libbin\
+ libbio\
+ libdraw\
+ libflate\
+ libfmt\
+ libframe\
+ libhttpd\
+ libip\
+ libregexp\
+ libsec\
+ libthread\
+ libutf\
+ libventi\
+# cmd\
+
+<mkdirs
+
+MKDIRS=\
+ libutf\
+ libfmt\
+ libbio\
+ libregexp\
+ cmd/mk\
+
+mkmk.sh:VD:
+ (
+ for i in $MKDIRS
+ do
+ echo cd $i
+ (cd $i; mk -n -a install)
+ echo cd ..
+ done
+ ) >$target
+
+testmkmk:V:
+ mk mkmk.sh
+ rm -f ../lib/lib*.a
+ mv ../bin/mk ../bin/_mk
+ sh -ex mkmk.sh
+ ls -l ../bin/mk
+
+testcvs:V:
+ cvs up -dAP
+ cp ../bin/_mk ../bin/mk
+ mk clean
+ rm ../lib/*.a
+ mv ../bin/mk ../bin/_mk
+ rm ../bin/*
+ PLAN9="`pwd`/.." export PLAN9
+ PATH=$PLAN9/bin:$PATH export PATH
+