aboutsummaryrefslogtreecommitdiff
path: root/unix/mkfile.fmt
blob: d88525e8d2900908721cbd79172c28a7112d10b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
MAKEALL=`{cd ../make; ls Make.*}
CFILES=`{9 ls -p $PLAN9/src/lib9/fmt/*.c}
CFILES1=`{9 ls -p $PLAN9/src/lib9/fmt/*.c |grep -v test}
TARG=\
	$MAKEALL\
	$CFILES\
	NOTICE\
	README\
	Makefile\
	fmt.h\
	fmtdef.h\
	nan.h\
	plan9.h\
	fmtinstall.3\
	print.3\

WHAT=fmt

<../mkfile.what

%: $PLAN9/src/lib9/fmt/%
	cp $prereq $target

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