54 DIRS := $(HTML_DIR) |
54 DIRS := $(HTML_DIR) |
55 |
55 |
56 ################################################################ |
56 ################################################################ |
57 # Deploy targets. |
57 # Deploy targets. |
58 |
58 |
|
59 WWW_SRV_NAME := defun.work |
|
60 WWW_SRV_USER := user |
|
61 HG_SRV_NAME := hg.defun.work |
|
62 HG_SRV_USER := user |
|
63 |
59 ifneq '' '$(filter deploy%,$(MAKECMDGOALS))' |
64 ifneq '' '$(filter deploy%,$(MAKECMDGOALS))' |
60 $(shell rm -f HEADER.rst) |
65 $(shell rm -f HEADER.rst) |
61 endif |
66 endif |
62 |
67 |
63 .PHONY: deploy |
68 .PHONY: deploy |
64 deploy: deploy2defun-web deploy2defun-hg deploy2sf-web deploy2sf-hg |
69 deploy: deploy2defun-web deploy2defun-hg deploy2sf-web deploy2sf-hg |
65 |
70 |
66 # Will be accessible via: http://tips.defun.work/frame.html |
71 # Will be accessible via: http://tips.defun.work/frame.html |
67 .PHONY: deploy2defun-web |
72 .PHONY: deploy2defun-web |
68 deploy2defun-web: html |
73 deploy2defun-web: html |
69 rsync --delete -avP -e ssh tips-html/ user@vps:/srv/www/tips/ |
74 rsync --delete -avP -e ssh tips-html/ $(WWW_SRV_USER)@$(WWW_SRV_NAME):/srv/www/tips/ |
70 |
75 |
71 .PHONY: deploy2defun-hg |
76 .PHONY: deploy2defun-hg |
72 deploy2defun-hg: |
77 deploy2defun-hg: |
73 hg push ssh://user@hg.defun.work//srv/hg/tips || [ $$? = 1 ] |
78 hg push ssh://$(HG_SRV_USER)@$(HG_SRV_NAME)//srv/hg/tips || [ $$? = 1 ] |
74 |
79 |
75 # Will be accessible via: http://gavenkoa.users.sourceforge.net/tips-html/frame.html |
80 # Will be accessible via: http://gavenkoa.users.sourceforge.net/tips-html/frame.html |
76 .PHONY: deploy2sf-web |
81 .PHONY: deploy2sf-web |
77 deploy2sf-web: html |
82 deploy2sf-web: html |
78 rsync --delete -avP -e ssh tips-html/ gavenkoa@frs.sourceforge.net:/home/user-web/g/ga/gavenkoa/htdocs/tips-html/ |
83 rsync --delete -avP -e ssh tips-html/ gavenkoa@frs.sourceforge.net:/home/user-web/g/ga/gavenkoa/htdocs/tips-html/ |