aboutsummaryrefslogtreecommitdiff
path: root/unix/mkfile.fmt
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-03-01 19:36:29 +0000
committerrsc <devnull@localhost>2004-03-01 19:36:29 +0000
commitaa738614530c1525b2337a3812d238b9776d51f0 (patch)
tree0e989d3bfe7b0682fb3437429086048bef8a4d9c /unix/mkfile.fmt
parent63dd44c8ca13354de84c4da659454526ec6750db (diff)
downloadplan9port-aa738614530c1525b2337a3812d238b9776d51f0.tar.gz
plan9port-aa738614530c1525b2337a3812d238b9776d51f0.tar.bz2
plan9port-aa738614530c1525b2337a3812d238b9776d51f0.zip
Build Unix-friendly versions directly from library.
Diffstat (limited to 'unix/mkfile.fmt')
-rw-r--r--unix/mkfile.fmt45
1 files changed, 45 insertions, 0 deletions
diff --git a/unix/mkfile.fmt b/unix/mkfile.fmt
new file mode 100644
index 00000000..13e97d68
--- /dev/null
+++ b/unix/mkfile.fmt
@@ -0,0 +1,45 @@
+MAKEALL=`{cd ../make; ls Make.*}
+TARG=\
+ $MAKEALL\
+ NOTICE\
+ README\
+ Makefile\
+ `{ls -p $PLAN9/src/lib9/fmt/*.c}\
+ fmt.h\
+ fmtdef.h\
+ nan.h\
+
+all:V: $TARG
+
+%: $PLAN9/include/%
+ cp $prereq $target
+
+%: $PLAN9/src/lib9/fmt/%
+ cp $prereq $target
+
+%: $PLAN9/man/man1/%
+ cp $prereq $target
+
+%: $PLAN9/man/man3/%
+ cp $prereq $target
+
+%: $PLAN9/man/man7/%
+ cp $prereq $target
+
+%: ../make/%
+ cp $prereq $target
+
+Makefile:D: ../make/Makefile.TOP ../make/Makefile.fmt ../make/Makefile.LIB ../make/Makefile.BOT
+ cat $prereq >$target
+
+README: ../README
+ cp $prereq $target
+
+NOTICE: ../NOTICE.fmt
+ cp $prereq $target
+
+fmt.h: ../fmt.h
+ cp $prereq $target
+
+fmt.c: $PLAN9/src/lib9/fmt/fmt.c
+ cat $prereq | sed "/'u',.*__flagfmt/ s/__flagfmt/__ifmt/" >$target