rsc | aa73861 | 2004-03-01 19:36:29 +0000 | [diff] [blame] | 1 | MAKEALL=`{cd ../make; ls Make.*} |
Russ Cox | f5fcdee | 2008-07-20 06:17:17 -0400 | [diff] [blame] | 2 | CFILES=`{9 ls -p $PLAN9/src/lib9/fmt/*.c} |
| 3 | CFILES1=`{9 ls -p $PLAN9/src/lib9/fmt/*.c |grep -v test} |
rsc | aa73861 | 2004-03-01 19:36:29 +0000 | [diff] [blame] | 4 | TARG=\ |
| 5 | $MAKEALL\ |
Russ Cox | f5fcdee | 2008-07-20 06:17:17 -0400 | [diff] [blame] | 6 | $CFILES\ |
rsc | aa73861 | 2004-03-01 19:36:29 +0000 | [diff] [blame] | 7 | NOTICE\ |
| 8 | README\ |
| 9 | Makefile\ |
rsc | aa73861 | 2004-03-01 19:36:29 +0000 | [diff] [blame] | 10 | fmt.h\ |
| 11 | fmtdef.h\ |
| 12 | nan.h\ |
rsc | 1b7f98f | 2004-12-28 23:27:43 +0000 | [diff] [blame] | 13 | plan9.h\ |
rsc | 2b522d7 | 2004-04-19 05:57:10 +0000 | [diff] [blame] | 14 | fmtinstall.3\ |
rsc | 1b7f98f | 2004-12-28 23:27:43 +0000 | [diff] [blame] | 15 | print.3\ |
rsc | aa73861 | 2004-03-01 19:36:29 +0000 | [diff] [blame] | 16 | |
rsc | 78e51a8 | 2005-01-14 03:45:44 +0000 | [diff] [blame] | 17 | WHAT=fmt |
rsc | aa73861 | 2004-03-01 19:36:29 +0000 | [diff] [blame] | 18 | |
rsc | 78e51a8 | 2005-01-14 03:45:44 +0000 | [diff] [blame] | 19 | <../mkfile.what |
rsc | aa73861 | 2004-03-01 19:36:29 +0000 | [diff] [blame] | 20 | |
| 21 | %: $PLAN9/src/lib9/fmt/% |
| 22 | cp $prereq $target |
| 23 | |
Russ Cox | f5fcdee | 2008-07-20 06:17:17 -0400 | [diff] [blame] | 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 |
| 37 | |