From: Don Armstrong Date: Sun, 11 Dec 2016 20:15:44 +0000 (-0800) Subject: use variables.mk to set variables from defaults X-Git-Url: https://git.donarmstrong.com/?p=catcam.git;a=commitdiff_plain;h=eb399f78462ef6ea5e1feca42e3a712b4b35d13f use variables.mk to set variables from defaults --- diff --git a/Makefile b/Makefile index d344932..06d8d06 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,16 @@ #!/usr/bin/make -f +CAMERA_HOST=catcam.example.com +WEB_HOST=catcam.example.com +WEB_DIR=/srv/catcam/html -deploy: motion_detected.sh - scp $^ don@jax.vpn.donarmstrong.com:.; +-include variables.mk + + +deploy-camera: motion_detected.sh + scp $^ don@$(CAMERA_HOST):.; + +deploy-server: index.cgi + scp $^ don@$(WEB_HOST):$(WEB_DIR)/.; .PHONY: deploy