]> git.donarmstrong.com Git - catcam.git/blobdiff - Makefile
use variables.mk to set variables from defaults
[catcam.git] / 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