jdormit-infra/prod/syncthing-packer/packer/Makefile

14 lines
426 B
Makefile

.PHONY: packer
packer: syncthing-config.xml syncthing.json
packer build syncthing.json
syncthing-config.xml: syncthing-config.xml.template
sigil -p -f syncthing-config.xml.template > syncthing-config.xml
syncthing-cert.pem: syncthing-cert.pem.template
sigil -p -f syncthing-cert.pem.template > syncthing-cert.pem
syncthing-key.pem: syncthing-key.pem.template
sigil -p -f syncthing-key.pem.template > syncthing-key.pem