summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-07-19 12:59:20 -0400
committerJakob Kaivo <jkk@ung.org>2019-07-19 12:59:20 -0400
commit6b1ab2ca3d67810297fcbc3ecfb2af179d02427b (patch)
treee9d5521acca5c0236b1390785123b961aa065885 /Makefile
parent31b5468bf812a177d857a35194256754ac5e0a4d (diff)
use PROGRAMS macro to enable clean target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f907660..8ab7115 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,8 @@
.POSIX:
-all: hostid sync
+PROGRAMS=hostid sync
+
+all: $(PROGRAMS)
+
+clean:
+ rm -f $(PROGRAMS) *.o