aboutsummaryrefslogtreecommitdiff
path: root/unix/mkfile.fmt
blob: d970a246fb5ef7baa1cb1fa78b399c4a9abec810 (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
38
39
40
41
42
43
44
45
46
47
MAKEALL=`{cd ../make; ls Make.*}
TARG=\
	$MAKEALL\
	NOTICE\
	README\
	Makefile\
	`{ls -p $PLAN9/src/lib9/fmt/*.c}\
	fmt.h\
	fmtdef.h\
	nan.h\
	print.3\
	fmtinstall.3\

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