From eb399f78462ef6ea5e1feca42e3a712b4b35d13f Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sun, 11 Dec 2016 12:15:44 -0800 Subject: [PATCH] use variables.mk to set variables from defaults --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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 -- 2.39.2