Makefile
changeset 1883 2e2b67e76e55
parent 1843 8ad4fe7443f2
child 1889 265b8d0f6149
--- a/Makefile	Sat Feb 06 02:15:18 2016 +0200
+++ b/Makefile	Sat Feb 06 13:06:00 2016 +0200
@@ -56,6 +56,11 @@
 ################################################################
 # Deploy targets.
 
+WWW_SRV_NAME := defun.work
+WWW_SRV_USER := user
+HG_SRV_NAME := hg.defun.work
+HG_SRV_USER := user
+
 ifneq '' '$(filter deploy%,$(MAKECMDGOALS))'
   $(shell rm -f HEADER.rst)
 endif
@@ -66,11 +71,11 @@
 # Will be accessible via: http://tips.defun.work/frame.html
 .PHONY: deploy2defun-web
 deploy2defun-web: html
-	rsync --delete -avP -e ssh tips-html/ user@vps:/srv/www/tips/
+	rsync --delete -avP -e ssh tips-html/ $(WWW_SRV_USER)@$(WWW_SRV_NAME):/srv/www/tips/
 
 .PHONY: deploy2defun-hg
 deploy2defun-hg:
-	hg push ssh://user@hg.defun.work//srv/hg/tips || [ $$? = 1 ]
+	hg push ssh://$(HG_SRV_USER)@$(HG_SRV_NAME)//srv/hg/tips || [ $$? = 1 ]
 
 # Will be accessible via: http://gavenkoa.users.sourceforge.net/tips-html/frame.html
 .PHONY: deploy2sf-web