Makefile
changeset 1843 8ad4fe7443f2
parent 1839 248ed4d46099
child 1883 2e2b67e76e55
--- a/Makefile	Wed Dec 23 12:19:32 2015 +0200
+++ b/Makefile	Wed Dec 23 12:29:27 2015 +0200
@@ -61,13 +61,17 @@
 endif
 
 .PHONY: deploy
-deploy: deploy2defun-web deploy2sf-web deploy2sf-hg
+deploy: deploy2defun-web deploy2defun-hg deploy2sf-web deploy2sf-hg
 
 # 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/
 
+.PHONY: deploy2defun-hg
+deploy2defun-hg:
+	hg push ssh://user@hg.defun.work//srv/hg/tips || [ $$? = 1 ]
+
 # Will be accessible via: http://gavenkoa.users.sourceforge.net/tips-html/frame.html
 .PHONY: deploy2sf-web
 deploy2sf-web: html