]> git.donarmstrong.com Git - catcam.git/commitdiff
use variables.mk to set variables from defaults
authorDon Armstrong <don@donarmstrong.com>
Sun, 11 Dec 2016 20:15:44 +0000 (12:15 -0800)
committerDon Armstrong <don@donarmstrong.com>
Sun, 11 Dec 2016 20:15:44 +0000 (12:15 -0800)
Makefile

index d344932f0390cba89e271bee55a5d97edab6a953..06d8d061317f291b745557e22239b019691b039e 100644 (file)
--- 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