Blob


1 MAKEALL=`{cd ../make; ls Make.*}
2 CFILES=`{9 ls -p $PLAN9/src/lib9/fmt/*.c}
3 CFILES1=`{9 ls -p $PLAN9/src/lib9/fmt/*.c |grep -v test}
4 TARG=\
5 $MAKEALL\
6 $CFILES\
7 NOTICE\
8 README\
9 Makefile\
10 fmt.h\
11 fmtdef.h\
12 nan.h\
13 plan9.h\
14 fmtinstall.3\
15 print.3\
17 WHAT=fmt
19 <../mkfile.what
21 %: $PLAN9/src/lib9/fmt/%
22 cp $prereq $target
24 fmt1.c: plan9.h $CFILES1
25 (echo '#include <stdarg.h>'; \
26 echo '#include <string.h>'; \
27 echo '#include <stdlib.h>'; \
28 echo '#include <errno.h>'; \
29 echo '#include <limits.h>'; \
30 echo '#include <math.h>'; \
31 echo '#include <float.h>'; \
32 cat plan9.h; \
33 echo '#include "utf.h"'; \
34 echo '#include "fmt.h"'; \
35 cat fmtdef.h; \
36 grep -hv '^#include' $CFILES1) >$target