From 58611a1bbf601c7f38c76421d3a3ece58bc56efb Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 23 Nov 2003 18:16:24 +0000 Subject: [PATCH] make -> mk change %u from verb to flag. --- src/libfmt/fmt.c | 2 +- src/libfmt/{Makefile => mkfile} | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) rename src/libfmt/{Makefile => mkfile} (75%) diff --git a/src/libfmt/fmt.c b/src/libfmt/fmt.c index 06f6c950..976bf7ca 100644 --- a/src/libfmt/fmt.c +++ b/src/libfmt/fmt.c @@ -64,7 +64,7 @@ static Convfmt knownfmt[] = { 'p', __ifmt, 'r', __errfmt, 's', __strfmt, - 'u', __ifmt, /* in Plan 9, __flagfmt */ + 'u', __flagfmt, /* in Unix, __ifmt */ 'x', __ifmt, 0, nil, }; diff --git a/src/libfmt/Makefile b/src/libfmt/mkfile similarity index 75% rename from src/libfmt/Makefile rename to src/libfmt/mkfile index 9e48a596..4a03a338 100644 --- a/src/libfmt/Makefile +++ b/src/libfmt/mkfile @@ -1,5 +1,5 @@ PLAN9=../.. -include $(PLAN9)/src/Makehdr +<$PLAN9/src/mkhdr LIB=libfmt.a @@ -40,18 +40,18 @@ OFILES=\ vseprint.$O\ vsmprint.$O\ vsnprint.$O\ - $(NUM)\ - $(NAN)\ + $NUM\ + $NAN\ HFILES=\ fmtdef.h\ - $(PLAN9)/include/fmt.h\ + $PLAN9/include/fmt.h\ -include $(PLAN9)/src/Makesyslib +<$PLAN9/src/mksyslib -$(NAN).$O: nan.h +$NAN.$O: nan.h strtod.$O: nan.h -test: $(LIB) test.$O - $(CC) -o test test.$O $(LIB) -L$(PLAN9)/lib -lutf +test: $LIB test.$O + $CC -o test test.$O $LIB -L$PLAN9/lib -lutf