Makefile
changeset 1369 afb2d0fd7999
parent 1362 aaad8c283943
child 1406 0fddf6d2ccf2
equal deleted inserted replaced
1368:ec4a06cc1a8b 1369:afb2d0fd7999
    73 ################################################################
    73 ################################################################
    74 # Targets.
    74 # Targets.
    75 
    75 
    76 .PHONY: all
    76 .PHONY: all
    77 all: install
    77 all: install
       
    78 
       
    79 ################################################################
       
    80 # Deploy targets.
       
    81 
       
    82 .PHONY: deploy
       
    83 deploy: deploy2defun deploy2sf
       
    84 
       
    85 
       
    86 DEFUN_USER ?= user
       
    87 DEFUN_HG_SRV ?= hg.defun.work
       
    88 DEFUN_HG_DIR ?= /srv/hg/dot-emacs
       
    89 
       
    90 .PHONY: deploy2defun
       
    91 deploy2defun: deploy2defun-src
       
    92 
       
    93 .PHONY: deploy2defun-src
       
    94 deploy2defun-src:
       
    95 	hg push ssh://$(DEFUN_USER)@$(DEFUN_HG_SRV)/$(DEFUN_HG_DIR) || [ $$? = 1 ]
       
    96 
       
    97 
       
    98 SF_USER ?= gavenkoa
       
    99 
       
   100 .PHONY: deploy2sf
       
   101 deploy2sf: deploy2sf-src
       
   102 
       
   103 .PHONY: deploy2sf-src
       
   104 deploy2sf-src:
       
   105 	hg push ssh://$(SF_USER)@hg.code.sf.net/u/$(SF_USER)/dot-emacs || [ $$? = 1 ]
    78 
   106 
    79 ################################################################
   107 ################################################################
    80 # Install/uninstall targets.
   108 # Install/uninstall targets.
    81 
   109 
    82 .PHONY: check-install-comapt
   110 .PHONY: check-install-comapt