summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJonathan Bauer2018-02-13 14:54:10 +0100
committerJonathan Bauer2018-02-13 14:54:10 +0100
commit20cabb987b538bcdaa6178b780e89e55ad17ce3f (patch)
treefc7c24bc107359c0999896e96e9dadc17a448317 /Makefile
parentMakefile: create the symlink to <flavor>.latest before provisioning (diff)
downloadpacker-templates-20cabb987b538bcdaa6178b780e89e55ad17ce3f.tar.gz
packer-templates-20cabb987b538bcdaa6178b780e89e55ad17ce3f.tar.xz
packer-templates-20cabb987b538bcdaa6178b780e89e55ad17ce3f.zip
Makefile: boot targets: reintroduce deletion of tmp image if DEBUG is set
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7f5ccc6..3f427a6 100644
--- a/Makefile
+++ b/Makefile
@@ -129,6 +129,9 @@ $(BOOTTARGETS):
-var='playbook=build-dracut-initramfs.yml' \
$(BUILD_DIR)/$(ANSIBLE_DIR)/run-playbook-only.json
@mv $(BUILD_DIR)/$(ANSIBLE_DIR)/boot_files $(BUILD_DIR)/build/boot
+ ifndef DEBUG
+ @rm -rf $(BUILD_DIR)/build/tmp
+ endif
clean_except_last: