# HG changeset patch # User Oleksandr Gavenko # Date 1456131783 -7200 # Node ID f82b136921b700b08180387bf377f58a69abe7a5 # Parent 46721724e2a3a58f9049b9a5554c62e431b0f34f Deploy to local WEB server. diff -r 46721724e2a3 -r f82b136921b7 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.