2004-03-01 19:36:29 +00:00
|
|
|
MAKEALL=`{cd ../make; ls Make.*}
|
2008-07-20 10:17:17 +00:00
|
|
|
CFILES=`{9 ls -p $PLAN9/src/lib9/fmt/*.c}
|
|
|
|
CFILES1=`{9 ls -p $PLAN9/src/lib9/fmt/*.c |grep -v test}
|
2004-03-01 19:36:29 +00:00
|
|
|
TARG=\
|
|
|
|
$MAKEALL\
|
2008-07-20 10:17:17 +00:00
|
|
|
$CFILES\
|
2004-03-01 19:36:29 +00:00
|
|
|
NOTICE\
|
|
|
|
README\
|
|
|
|
Makefile\
|
|
|
|
fmt.h\
|
|
|
|
fmtdef.h\
|
|
|
|
nan.h\
|
2004-12-28 23:27:43 +00:00
|
|
|
plan9.h\
|
2004-04-19 05:57:10 +00:00
|
|
|
fmtinstall.3\
|
2004-12-28 23:27:43 +00:00
|
|
|
print.3\
|
2004-03-01 19:36:29 +00:00
|
|
|
|
2005-01-14 03:45:44 +00:00
|
|
|
WHAT=fmt
|
2004-03-01 19:36:29 +00:00
|
|
|
|
2005-01-14 03:45:44 +00:00
|
|
|
<../mkfile.what
|
2004-03-01 19:36:29 +00:00
|
|
|
|
|
|
|
%: $PLAN9/src/lib9/fmt/%
|
|
|
|
cp $prereq $target
|
|
|
|
|
2008-07-20 10:17:17 +00:00
|
|
|
fmt1.c: plan9.h $CFILES1
|
|
|
|
(echo '#include <stdarg.h>'; \
|
|
|
|
echo '#include <string.h>'; \
|
|
|
|
echo '#include <stdlib.h>'; \
|
|
|
|
echo '#include <errno.h>'; \
|
|
|
|
echo '#include <limits.h>'; \
|
|
|
|
echo '#include <math.h>'; \
|
|
|
|
echo '#include <float.h>'; \
|
|
|
|
cat plan9.h; \
|
|
|
|
echo '#include "utf.h"'; \
|
|
|
|
echo '#include "fmt.h"'; \
|
|
|
|
cat fmtdef.h; \
|
|
|
|
grep -hv '^#include' $CFILES1) >$target
|
|
|
|
|