diff --git a/Makefile b/Makefile index 8cdad077..97fd6edd 100644 --- a/Makefile +++ b/Makefile @@ -51,7 +51,9 @@ $(SDIST): setup.py pwnagotchi $pwnagotchi: | $(PACKER) # If the packer or ansible files are updated, rebuild the image. -$pwnagotchi: cd builder && packer init pwnagotchi.json.pkr.hcl && sudo $(UNSHARE) $(PACKER) build -var "pwn_hostname=$(PWN_HOSTNAME)" -var "pwn_version=$(PWN_VERSION)" pwnagotchi.json.pkr.hcl +$pwnagotchi: $(SDIST) builder/pwnagotchi.json.pkr.hcl builder/raspberrypi32.yml builder/raspberrypi64.yml builder/orangepi.yml builder/extras/nexmon.yml $(shell find builder/data -type f) + + cd builder && packer init pwnagotchi.json.pkr.hcl && sudo $(UNSHARE) $(PACKER) build -var "pwn_hostname=$(PWN_HOSTNAME)" -var "pwn_version=$(PWN_VERSION)" pwnagotchi.json.pkr.hcl .PHONY: image image: $pwnagotchi