From fada1a67c40ea39a1f6ebec382070b4f2cdd6b7b Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 7 Aug 2019 09:34:54 -0400 Subject: add clean target --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 0370909..15ef423 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +.POSIX: + strerror: strerror.c strerror.h $(CC) $(CFLAGS) -o $@ strerror.c @@ -7,3 +9,6 @@ strerror.h: errlist Makefile printf 'const char *errlist[] = {\n' >> $@ awk '{printf("#ifdef %s\n\t[%s] = \"%s\",\n#endif\n", $$0, $$0, $$0);}' errlist >> $@ printf '};\n\n#endif\n' >> $@ + +clean: + rm -f strerror *.o -- cgit v1.2.1