make -> mk change %u from verb to flag.
diff --git a/src/libfmt/fmt.c b/src/libfmt/fmt.c index 06f6c95..976bf7c 100644 --- a/src/libfmt/fmt.c +++ b/src/libfmt/fmt.c
@@ -64,7 +64,7 @@ '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 9e48a59..4a03a33 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 @@ 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