Deploy to local WEB server.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 11:03:03 +0200
changeset 69 f82b136921b7
parent 68 46721724e2a3
child 70 1c08c262dfba
Deploy to local WEB server.
Makefile
--- a/Makefile	Mon Feb 22 10:55:12 2016 +0200
+++ b/Makefile	Mon Feb 22 11:03:03 2016 +0200
@@ -60,6 +60,7 @@
 WWW_SRV_USER := user
 HG_SRV_NAME := hg.defun.work
 HG_SRV_USER := user
+LOCAL_DIR := /srv/www/tips
 
 ifneq '' '$(filter deploy%,$(MAKECMDGOALS))'
   $(shell rm -f HEADER.rst)
@@ -86,6 +87,10 @@
 deploy2sf-hg:
 	hg push ssh://gavenkoa@hg.code.sf.net/u/gavenkoa/tips || [ $$? = 1 ]
 
+.PHONY: deploy2local
+deploy2local: html
+	rsync --delete -avP tips-html/ $(LOCAL_DIR)
+
 ################################################################
 # Build targets.