Makefile
changeset 558 53fd793e345d
parent 557 d7a42a700255
child 564 93d0bdb815a1
equal deleted inserted replaced
557:d7a42a700255 558:53fd793e345d
   170 # Deploy/release targets.
   170 # Deploy/release targets.
   171 
   171 
   172 .PHONY: deploy
   172 .PHONY: deploy
   173 deploy: deploy2defun deploy2sf
   173 deploy: deploy2defun deploy2sf
   174 
   174 
       
   175 .PHONY: deploy-hg
       
   176 deploy-hg: deploy2defun-hg deploy2sf-hg
       
   177 
   175 .PHONY: release
   178 .PHONY: release
   176 release: release2defun release2sf
   179 release: release2defun release2sf
   177 
   180 
   178 .PHONY: release2defun
   181 .PHONY: release2defun
   179 release2defun: validate-release deploy2defun
   182 release2defun: validate-release deploy2defun
   188 DEFUN_WWW_SRV ?= defun.work
   191 DEFUN_WWW_SRV ?= defun.work
   189 DEFUN_WWW_DIR ?= /srv/www/gadict
   192 DEFUN_WWW_DIR ?= /srv/www/gadict
   190 DEFUN_REL_DIR ?= /srv/www/gadict/download
   193 DEFUN_REL_DIR ?= /srv/www/gadict/download
   191 
   194 
   192 .PHONY: deploy2defun
   195 .PHONY: deploy2defun
   193 deploy2defun: deploy2defun-www deploy2defun-dist deploy2defun-src
   196 deploy2defun: deploy2defun-www deploy2defun-dist deploy2defun-hg
   194 
   197 
   195 .PHONY: deploy2defun-src
   198 .PHONY: deploy2defun-hg
   196 deploy2defun-src:
   199 deploy2defun-hg:
   197 	hg push ssh://$(DEFUN_USER)@$(DEFUN_HG_SRV)/$(DEFUN_HG_DIR) || [ $$? = 1 ]
   200 	hg push ssh://$(DEFUN_USER)@$(DEFUN_HG_SRV)/$(DEFUN_HG_DIR) || [ $$? = 1 ]
   198 
   201 
   199 .PHONY: deploy2defun-www
   202 .PHONY: deploy2defun-www
   200 deploy2defun-www: $(HTML_FILES)
   203 deploy2defun-www: $(HTML_FILES)
   201 	( \
   204 	( \
   227 #   $ sftp $(SF_USER),$(pkgname)@web.sourceforge.net
   230 #   $ sftp $(SF_USER),$(pkgname)@web.sourceforge.net
   228 # as it may require interactive input for accepting server public key.
   231 # as it may require interactive input for accepting server public key.
   229 # Next time any action fully automated.
   232 # Next time any action fully automated.
   230 
   233 
   231 .PHONY: deploy2sf
   234 .PHONY: deploy2sf
   232 deploy2sf: deploy2sf-www deploy2sf-dist deploy2sf-voa deploy2sf-src
   235 deploy2sf: deploy2sf-www deploy2sf-dist deploy2sf-voa deploy2sf-hg
   233 
   236 
   234 .PHONY: deploy2sf-src
   237 .PHONY: deploy2sf-hg
   235 deploy2sf-src:
   238 deploy2sf-hg:
   236 	hg push ssh://$(SF_USER)@hg.code.sf.net/p/$(pkgname)/code || [ $$? = 1 ]
   239 	hg push ssh://$(SF_USER)@hg.code.sf.net/p/$(pkgname)/code || [ $$? = 1 ]
   237 
   240 
   238 # Will be accessed via http://$(pkgname).sourceforge.net
   241 # Will be accessed via http://$(pkgname).sourceforge.net
   239 .PHONY: deploy2sf-www
   242 .PHONY: deploy2sf-www
   240 deploy2sf-www: $(HTML_FILES)
   243 deploy2sf-www: $(HTML_FILES)