plan9port/src/mkfile

61 lines
985 B
Text
Raw Normal View History

2004-03-02 17:34:15 +00:00
<mkhdr
2005-07-13 03:52:19 +00:00
BUGGERED='fs|fmt|httpd|utf|sunrpc|diskfs'
2004-03-09 12:45:12 +00:00
LIBDIRS=`ls -ld lib* | sed -n 's/^d.* //p' |egrep -v "^lib($BUGGERED)$"`
2003-11-23 18:10:54 +00:00
DIRS=\
2004-03-09 12:45:12 +00:00
$LIBDIRS\
2003-11-23 20:04:53 +00:00
cmd\
2003-11-23 18:10:54 +00:00
<mkdirs
2004-09-21 01:11:28 +00:00
libs:V: libs-all
libs-%:V:
for i in $LIBDIRS
do
(cd $i; mk $stem)
done
2003-11-23 18:10:54 +00:00
MKDIRS=\
libbio\
libregexp\
cmd/mk\
mkmk.sh:VD:
(
2004-02-29 22:49:59 +00:00
echo cd lib9
2004-03-02 17:34:15 +00:00
(cd lib9; mk -n -a install)
2004-02-29 22:49:59 +00:00
echo cd ..
for i in libbio libregexp cmd/mk
2003-11-23 18:10:54 +00:00
do
echo cd $i
(cd $i; mk -n -a install)
echo cd ..
done
2004-03-04 02:06:46 +00:00
) | sed '
s/'$SYSNAME'/$SYSNAME/g
s/'$OBJTYPE'/$OBJTYPE/g
2004-05-15 23:15:31 +00:00
s;'$PLAN9';$PLAN9;g
s/9[ac] *getcallerpc-.*/9c getcallerpc-$OBJTYPE.c || 9a getcallerpc-$OBJTYPE.s/
2004-03-04 02:06:46 +00:00
s/^9[ac] *tas-.*/9a tas-$OBJTYPE.s || 9c tas-$OBJTYPE.c/
' >$target
2003-11-23 18:10:54 +00:00
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:
2003-11-23 19:49:17 +00:00
(cd ..; cvs up -dAP)
2003-11-23 18:10:54 +00:00
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