diff options
author | rsc <devnull@localhost> | 2004-12-28 23:27:43 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-12-28 23:27:43 +0000 |
commit | 1b7f98fb307ba8f3271a5051f05395ac99056b26 (patch) | |
tree | e7c7edd866130ebd77544fe1398642ae92ea779a /unix/mkfile | |
parent | e5d47e6e15c72b816315e520a3b7756babf9deb2 (diff) | |
download | plan9port-1b7f98fb307ba8f3271a5051f05395ac99056b26.tar.gz plan9port-1b7f98fb307ba8f3271a5051f05395ac99056b26.tar.bz2 plan9port-1b7f98fb307ba8f3271a5051f05395ac99056b26.zip |
fix up extraction procedures
Diffstat (limited to 'unix/mkfile')
-rw-r--r-- | unix/mkfile | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/unix/mkfile b/unix/mkfile index 4f63a77a..58b86e54 100644 --- a/unix/mkfile +++ b/unix/mkfile @@ -4,10 +4,12 @@ bio fmt mk regexp utf:V: regexp) t=libregexp ;; *) t=lib$target ;; esac - mkdir $t || true - rm $t/* || true + # + mkdir -p $t + rm -f $t/* || true cd $t mk -f ../mkfile.$target + # case $target in bio) d=$PLAN9/src/$t;; regexp) d=$PLAN9/src/$t;; @@ -15,6 +17,7 @@ bio fmt mk regexp utf:V: utf) d=$PLAN9/src/lib9/$target ;; mk) d=$PLAN9/src/cmd/mk ;; esac + # for i in `ls -p $d/*.c` do if [ ! -f $i ] @@ -34,7 +37,16 @@ bio fmt mk regexp utf:V: rm $t/* || true cd $t mk -f ../mkfile.$target - + +%.install:V: + mk $stem + case $stem in + mk) t=mk ;; + regexp) t=libregexp ;; + *) t=lib$stem ;; + esac + (cd $t; make install) + lib%.tgz: mk $stem tar cf - lib$stem |gzip >lib$stem.tgz |