summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJonathan Bauer2018-02-13 13:53:11 +0100
committerJonathan Bauer2018-02-13 13:53:11 +0100
commit49c5e97f1587232befbf31fa7538b89607f70772 (patch)
tree6f2ad3d18f9201116b2584034bed55d784428206 /Makefile
parentMakefile: clean_bases target (diff)
downloadpacker-templates-49c5e97f1587232befbf31fa7538b89607f70772.tar.gz
packer-templates-49c5e97f1587232befbf31fa7538b89607f70772.tar.xz
packer-templates-49c5e97f1587232befbf31fa7538b89607f70772.zip
Makefile: clean_all target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4dc1de4..95948e6 100644
--- a/Makefile
+++ b/Makefile
@@ -81,7 +81,7 @@ check_rootpw = $(if $(strip $(ROOTPW)),\
)
-.PHONY: help clean_except_last clean_bases
+.PHONY: help clean_except_last clean_bases clean_all
help:
@@ -147,6 +147,11 @@ clean_bases:
test -d $(template) && rm -rf $(template)/base;\
)
+clean_all:
+ @-$(foreach template,$(TEMPLATES),\
+ test -d $(template) && rm -rf $(template);\
+ )
+
help:
@printf "Usage:\n\tmake <template>/<flavor>[/boot]\n"
@echo