Makefile
changeset 77 df763e1c3fe6
parent 76 2100455aae72
child 78 093ee7c2985f
equal deleted inserted replaced
76:2100455aae72 77:df763e1c3fe6
    68 deploy: deploy2defun-web deploy2defun-hg deploy2sf-web deploy2sf-hg
    68 deploy: deploy2defun-web deploy2defun-hg deploy2sf-web deploy2sf-hg
    69 
    69 
    70 # Will be accessible via: http://tips.defun.work/
    70 # Will be accessible via: http://tips.defun.work/
    71 .PHONY: deploy2defun-web
    71 .PHONY: deploy2defun-web
    72 deploy2defun-web: html
    72 deploy2defun-web: html
    73 	rsync --delete -avP -e ssh tips-html/ $(WWW_SRV_USER)@$(WWW_SRV_NAME):/srv/www/tips/
    73 	rsync --delete -avP -e ssh $(HTML_DIR)/ $(WWW_SRV_USER)@$(WWW_SRV_NAME):/srv/www/tips/
    74 
    74 
    75 .PHONY: deploy2defun-hg
    75 .PHONY: deploy2defun-hg
    76 deploy2defun-hg:
    76 deploy2defun-hg:
    77 	hg push ssh://$(HG_SRV_USER)@$(HG_SRV_NAME)//srv/hg/tips || [ $$? = 1 ]
    77 	hg push ssh://$(HG_SRV_USER)@$(HG_SRV_NAME)//srv/hg/tips || [ $$? = 1 ]
    78 
    78 
    79 # Will be accessible via: http://gavenkoa.users.sourceforge.net/tips-html/
    79 # Will be accessible via: http://gavenkoa.users.sourceforge.net/tips-html/
    80 .PHONY: deploy2sf-web
    80 .PHONY: deploy2sf-web
    81 deploy2sf-web: html
    81 deploy2sf-web: html
    82 	rsync --delete -avP -e ssh tips-html/ gavenkoa@frs.sourceforge.net:/home/user-web/g/ga/gavenkoa/htdocs/tips-html/
    82 	rsync --delete -avP -e ssh $(HTML_DIR)/ gavenkoa@frs.sourceforge.net:/home/user-web/g/ga/gavenkoa/htdocs/tips-html/
    83 
    83 
    84 .PHONY: deploy2sf-hg
    84 .PHONY: deploy2sf-hg
    85 deploy2sf-hg:
    85 deploy2sf-hg:
    86 	hg push ssh://gavenkoa@hg.code.sf.net/u/gavenkoa/tips || [ $$? = 1 ]
    86 	hg push ssh://gavenkoa@hg.code.sf.net/u/gavenkoa/tips || [ $$? = 1 ]
    87 
    87 
    88 .PHONY: deploy2local
    88 .PHONY: deploy2local
    89 deploy2local: html
    89 deploy2local: html
    90 	rsync --delete -avP tips-html/ $(LOCAL_DIR)
    90 	rsync --delete -avP $(HTML_DIR)/ $(LOCAL_DIR)
    91 
    91 
    92 ################################################################
    92 ################################################################
    93 # Build targets.
    93 # Build targets.
    94 
    94 
    95 .PHONY: all
    95 .PHONY: all