summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-08-07 09:34:54 -0400
committerJakob Kaivo <jkk@ung.org>2019-08-07 09:34:54 -0400
commitfada1a67c40ea39a1f6ebec382070b4f2cdd6b7b (patch)
tree11f129c3c7df04f34a87d35abcb786b80579a4be
parent65a8548e8cd2542f0c0fe52c1f23fcfee2f71600 (diff)
add clean target
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
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