chiark / gitweb /
test-example: Provide clean target in Makefile
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Sep 2014 16:00:06 +0000 (17:00 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Sep 2014 16:00:06 +0000 (17:00 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test-example/Makefile

index 67230b8..5869983 100644 (file)
@@ -1,7 +1,12 @@
-all: sites.conf inside.key outside.key
+TARGETS=sites.conf inside.key outside.key
+
+all: $(TARGETS)
 
 %.key: %.key.b64
        base64 -d <$< >$@.new && mv -f $@.new $@
 
 sites.conf: ../make-secnet-sites sites Makefile
        ../make-secnet-sites sites sites.conf
+
+clean:
+       rm -f *~ ./#*# *.new $(TARGETS)