update mk
This commit is contained in:
parent
20fb7bf166
commit
33d35ac937
@ -1,5 +1,29 @@
|
|||||||
EMACS_OSX := $(HOME)/Work/oss/build/osx/clang/64/dbg/emacs-new/nextstep/Emacs.app/Contents/MacOS/Emacs
|
|
||||||
EMACS := $(or $(wildcard $(EMACS_OSX)),emacs)
|
ifndef HAS_UTIL_MK
|
||||||
|
include $(HOME)/Documents/mk/util.mk
|
||||||
|
endif
|
||||||
|
|
||||||
|
EMACS_OSX := $(wildcard $(HOME)/Work/oss/build/osx/clang/64/dbg/emacs-new/nextstep/Emacs.app/Contents/MacOS/Emacs)
|
||||||
|
EMACS_W32 :=\
|
||||||
|
$(subst ?,$(sp),$(firstword\
|
||||||
|
$(subst $(sp),?,$(wildcard $(call fixpath-make,$(ProgramW6432)/emacs/bin/emacs.exe)))\
|
||||||
|
$(subst $(sp),?,$(wildcard $(call fixpath-make,$(ProgramFiles$(oparen)x86$(cparen))/emacs/bin/emacs.exe)))\
|
||||||
|
$(subst $(sp),?,$(wildcard $(call fixpath-make,$(ProgramFiles)/emacs/bin/emacs.exe)))))
|
||||||
|
|
||||||
|
EMACS := $(or $(EMACS_OSX),$(EMACS_W32),emacs)
|
||||||
|
|
||||||
|
ifeq (cygwin,$(HOSTENV))
|
||||||
|
ifneq (,$(findstring emacs/bin/emacs.exe,$(EMACS)))
|
||||||
|
EMACS_CYGWIN := emacs
|
||||||
|
fixpath-emacs = $(subst $(sp),?,$(shell cygpath -ma $(call fixpath-cyg,$(1))))
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
fixpath-emacs = $(subst /,\\\\,$(shell cd $(1)&&pwd -W))
|
||||||
|
endif
|
||||||
|
|
||||||
|
fixpath-emacs ?= $(1)
|
||||||
|
|
||||||
|
emacspath = $(foreach f,$(1),$(call fixpath-emacs,$(f)))
|
||||||
|
|
||||||
#SHELL := sh.exe -x
|
#SHELL := sh.exe -x
|
||||||
#$(error E:$(EMACS))
|
#$(error E:$(EMACS))
|
||||||
@ -15,7 +39,7 @@ TEXI2DVI := texi2dvi
|
|||||||
PS2PDF := ps2pdf
|
PS2PDF := ps2pdf
|
||||||
DVIPDFM := dvipdfm
|
DVIPDFM := dvipdfm
|
||||||
|
|
||||||
CEDET_HOME := $(subst /cygdrive/d,,$(LISP_DIR)/cedet)
|
CEDET_HOME := $(LISP_DIR)/cedet
|
||||||
|
|
||||||
#$(error '$(call emacspath,.)')
|
#$(error '$(call emacspath,.)')
|
||||||
|
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
# general emacs lisp pattern rules
|
# general emacs lisp pattern rules
|
||||||
# #########################################################################
|
# #########################################################################
|
||||||
%/elisp-all:
|
%/elisp-all:
|
||||||
$(MAKE) -C $* $(@F)
|
"$(MAKE)" -C $* $(@F)
|
||||||
|
|
||||||
%.elc : %.el
|
%.elc : %.el
|
||||||
$(EMACS) -batch -q -no-site-file\
|
"$(EMACS)" -batch -q -no-site-file\
|
||||||
$(addprefix -L ,$(LOAD_PATH))\
|
$(addprefix -L ,$(LOAD_PATH))\
|
||||||
$(EMACSFLAGS)\
|
$(EMACSFLAGS)\
|
||||||
-f batch-byte-compile $(call emacspath,$?)
|
-f batch-byte-compile $(call emacspath,$?)
|
||||||
|
|||||||
63
util.mk
63
util.mk
@ -3,26 +3,6 @@ HAS_UTIL_MK := T
|
|||||||
|
|
||||||
MK_DIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
|
MK_DIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
|
||||||
|
|
||||||
ifneq (,$(or $(ComSpec),$(COMSPEC),$(comspec)))
|
|
||||||
ifneq (Cygwin,$(shell uname -a))
|
|
||||||
NULL := /dev/null
|
|
||||||
fixpath = $(1)
|
|
||||||
emacspath = $(foreach f,$(1),$(shell cygpath -ma $(f)))
|
|
||||||
else ifneq (,$(MSYSTEM))
|
|
||||||
fixpath = $(foreach f,$(1),$(if $(subst $(f),,$(subst :,,$(f))),\
|
|
||||||
$(subst //,/,/$(firstword $(subst :, ,$(f)))$(subst \,/,$(lastword $(subst :, ,$(f))))),$(f)))
|
|
||||||
ifneq (,$(filter MSYS% MINGW%,$(MSYSTEM)))
|
|
||||||
#$(info test: $(filter MSYS% MINGW%,$(MSYSTEM)))
|
|
||||||
emacspath = $(foreach f,$(1),$(subst /,\\\\,$(shell cd $(f)&&pwd -W)))
|
|
||||||
else
|
|
||||||
RM := del
|
|
||||||
DIRSEP := $(if T,\)
|
|
||||||
SHQ := ^
|
|
||||||
RD := rmdir /q /s
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# define the $(\n) macro which has the value '\n'
|
# define the $(\n) macro which has the value '\n'
|
||||||
# Note: This really requires two empty lines!
|
# Note: This really requires two empty lines!
|
||||||
ifndef \n
|
ifndef \n
|
||||||
@ -93,10 +73,25 @@ sp := $(dummy) $(dummy)
|
|||||||
PARENO := (
|
PARENO := (
|
||||||
PARENC := )
|
PARENC := )
|
||||||
|
|
||||||
DIRSEP ?= /
|
ifneq (,$(or $(ComSpec),$(COMSPEC),$(comspec)))
|
||||||
SHQ ?= $(if T,\)
|
ifneq (,$(filter Cygwin,$(shell uname -a)))
|
||||||
emacspath ?= $(1)
|
HOSTENV := cygwin
|
||||||
fixpath ?= $(1)
|
NULL := /dev/null
|
||||||
|
fixpath-shell = $(subst $(sp),\$(sp),$(subst $(oparen),\$(oparen),$(subst $(cparen),\$(cparen),$(subst \,/,$(1)))))
|
||||||
|
fixpath-cyg = $(call fixpath-shell,$(1))
|
||||||
|
fixpath-make = $(strip\
|
||||||
|
$(subst $(sp),?,$(shell cygpath $(call fixpath-cyg,$(1)))))
|
||||||
|
else
|
||||||
|
HOSTENV := w32
|
||||||
|
NULL := nul
|
||||||
|
fixpath-make = $(subst \,/,$(subst $(sp),?,$(1)))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
DIRSEP ?= /
|
||||||
|
SHQ ?= $(if T,\)
|
||||||
|
fixpath-make ?= $(1)
|
||||||
|
fixpath-shell ?= $(1)
|
||||||
|
|
||||||
TEST := test
|
TEST := test
|
||||||
RD ?= rm -rf
|
RD ?= rm -rf
|
||||||
@ -104,24 +99,24 @@ RD ?= rm -rf
|
|||||||
NULL ?= $(or $(wildcard /dev/null),nul)
|
NULL ?= $(or $(wildcard /dev/null),nul)
|
||||||
|
|
||||||
ifeq (T,$(V))
|
ifeq (T,$(V))
|
||||||
mk-debug = $(info $1)
|
mk-debug = $(info $(1))
|
||||||
mk-debug-lno = $(warning $(\n)$1)
|
mk-debug-lno = $(warning $(\n)$(1))
|
||||||
mk-debug-vars = $(foreach _mkv,$1,$(info $(_mkv) := '$($(_mkv))'))
|
mk-debug-vars = $(foreach _mkv,$(1),$(info $(_mkv) := '$($(_mkv))'))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define include-once-helper
|
define include-once-helper
|
||||||
ifndef $(subst ?,_,$(subst /,_,$2))-included
|
ifndef $(subst ?,_,$(subst /,_,$(2)))-included
|
||||||
ifneq (,$(wildcard $2))
|
ifneq (,$(wildcard $(2)))
|
||||||
$(subst ?,_,$(subst /,_,$2))-included := T
|
$(subst ?,_,$(subst /,_,$(2)))-included := T
|
||||||
$$(call mk-debug-lno,+ including '$1')
|
$$(call mk-debug-lno,+ including '$(1)')
|
||||||
include $2
|
include $(2)
|
||||||
else
|
else
|
||||||
$$(call mk-debug-lno,[WARN] could not find '$1')
|
$$(call mk-debug-lno,[WARN] could not find '$(1)')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
include-once = $(eval $(call include-once-helper,$1,$(subst $(sp),?,$1)))
|
include-once = $(eval $(call include-once-helper,$1,$(subst $(sp),?,$(1))))
|
||||||
|
|
||||||
# END: HAS_UTIL_MK
|
# END: HAS_UTIL_MK
|
||||||
endif
|
endif
|
||||||
|
|||||||
230
vcs.mk
230
vcs.mk
@ -37,141 +37,161 @@ CVS := $(or $(patsubst %,"%",$(subst /,$(DIRSEP),$(wildcard c:/Program?Files/CVS
|
|||||||
CVSFLAGS := $(shell cvs --lf --version 2>$(NULL) >$(NULL)&&echo --lf)
|
CVSFLAGS := $(shell cvs --lf --version 2>$(NULL) >$(NULL)&&echo --lf)
|
||||||
CVSUP_FLAGS := -CPd
|
CVSUP_FLAGS := -CPd
|
||||||
|
|
||||||
ifneq (,$(filter http% HTTP%,$(PROXY)))
|
ifneq (,$(filter http% HTTP%,$(PROXY) $(http_proxy) $(HTTP_PROXY)))
|
||||||
URL_FILTERS := http: https:
|
URL_FILTERS := http:% https:%
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
info-vcs-template =\
|
||||||
|
$(info $(call $1,$2,$(URL-$2)))
|
||||||
|
|
||||||
eval-vcs-template =\
|
eval-vcs-template =\
|
||||||
$(if $(filter $(or $(addsuffix %,$(subst +, ,$(URL_FILTERS))),%,),$(URL-$2)),$(eval $(call $1,$2,$(URL-$2))))
|
$(eval $(call $1,$2,$(URL-$2)))
|
||||||
|
|
||||||
define HG_TMPL
|
define HG_TMPL
|
||||||
.PHONY: pull-$1
|
|
||||||
updaterepos: pull-$1
|
|
||||||
subrepos: $1/.hg
|
|
||||||
clean-subrepos: $1/.hg
|
|
||||||
DIR-$(notdir $1) := $1
|
DIR-$(notdir $1) := $1
|
||||||
$1/.hg:
|
ifeq (,$(filter-out $(URL_FILTERS),$2))
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
.PHONY: pull-$1
|
||||||
@echo +++ Creating[hg]: $(SHQ)'$1$(SHQ)' from $(SHQ)'$2$(SHQ)'
|
updaterepos: pull-$1
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
subrepos: $1/.hg
|
||||||
$(TEST) ! -d $1 || $(RD) $(subst /,$(DIRSEP),$1)
|
clean-subrepos: $1/.hg
|
||||||
$(HG) clone $2 $1
|
$1/.hg:
|
||||||
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
@echo +++ Creating[hg]: $(SHQ)'$1$(SHQ)' from $(SHQ)'$2$(SHQ)'
|
||||||
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
$(TEST) ! -d $1 || $(RD) $(subst /,$(DIRSEP),$1)
|
||||||
|
$(HG) clone $2 $1
|
||||||
|
|
||||||
pull-$1:
|
pull-$1:
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
@echo +++ Updating[hg]: $$(patsubst pull-%,%,$$@) $(SHQ)($2$(SHQ))
|
@echo +++ Updating[hg]: $$(patsubst pull-%,%,$$@) $(SHQ)($2$(SHQ))
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
$$(pre_up_cmd-$1)
|
$$(pre_up_cmd-$1)
|
||||||
$(HG) -R $(subst /,$(DIRSEP),$(subst $(DOT_DIR)/,,$1)) pull $(HGPULL_FLAGS)
|
$(HG) -R $(subst /,$(DIRSEP),$(subst $(DOT_DIR)/,,$1)) pull $(HGPULL_FLAGS)
|
||||||
$(HG) -R $(subst /,$(DIRSEP),$(subst $(DOT_DIR)/,,$1)) update $(HGPULL_FLAGS)
|
$(HG) -R $(subst /,$(DIRSEP),$(subst $(DOT_DIR)/,,$1)) update $(HGPULL_FLAGS)
|
||||||
$$(post_up_cmd-$1)
|
$$(post_up_cmd-$1)
|
||||||
|
|
||||||
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define SVN_TMPL
|
define SVN_TMPL
|
||||||
.PHONY: up-$1
|
|
||||||
update: up-$1
|
|
||||||
subrepos: $1/.svn
|
|
||||||
clean-subrepos: $1/.svn
|
|
||||||
DIR-$(notdir $1) := $1
|
DIR-$(notdir $1) := $1
|
||||||
$1/.svn:
|
ifeq (,$(filter-out $(URL_FILTERS),$2))
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
.PHONY: up-$1
|
||||||
@echo +++ Creating[svn]: $(SHQ)'$1$(SHQ)' from $(SHQ)'$2$(SHQ)'
|
updaterepos: up-$1
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
ifneq (,$(filter http:% https:%,$2))
|
||||||
$(TEST) ! -d $1 || $(RD) $(subst /,$(DIRSEP),$1)
|
subrepos: $1/.svn
|
||||||
$(SVN) checkout $2 $1
|
clean-subrepos: $1/.svn
|
||||||
|
else
|
||||||
|
.PHONY: $1/.svn
|
||||||
|
initrepos: $1/.svn
|
||||||
|
endif
|
||||||
|
$1/.svn:
|
||||||
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
@echo +++ Creating[svn]: $(SHQ)'$1$(SHQ)' from $(SHQ)'$2$(SHQ)'
|
||||||
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
ifneq (,$(filter http:% https:%,$2))
|
||||||
|
$(TEST) ! -d $1 || $(RD) $(subst /,$(DIRSEP),$1)
|
||||||
|
endif
|
||||||
|
$(SVN) checkout $2 $1
|
||||||
|
|
||||||
up-$1:
|
up-$1:
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
@echo +++ Updating[svn]: $$(patsubst up-%,%,$$@) $(SHQ)($2$(SHQ))
|
@echo +++ Updating[svn]: $$(patsubst up-%,%,$$@) $(SHQ)($2$(SHQ))
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
$$(pre_up_cmd-$1)
|
$$(pre_up_cmd-$1)
|
||||||
@cd $(subst /,$(DIRSEP),$1) >$(NULL) 2>&1 && $(SVN) $(SVNFLAGS) update $(SVNUP_FLAGS)
|
@cd $(subst /,$(DIRSEP),$1) >$(NULL) 2>&1 && $(SVN) $(SVNFLAGS) update $(SVNUP_FLAGS)
|
||||||
$$(post_up_cmd-$1)
|
$$(post_up_cmd-$1)
|
||||||
|
|
||||||
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define CVS_TMPL
|
define CVS_TMPL
|
||||||
.PHONY: up-$1
|
|
||||||
updaterepos: up-$1
|
|
||||||
DIR-$(notdir $1) := $1
|
DIR-$(notdir $1) := $1
|
||||||
.PHONY: $1/CVS
|
ifeq (,$(filter-out $(URL_FILTERS),$2))
|
||||||
initrepos: $1/CVS
|
.PHONY: up-$1
|
||||||
$1/CVS:
|
updaterepos: up-$1
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
.PHONY: $1/CVS
|
||||||
@echo +++ Creating[cvs]: $(SHQ)'$1$(SHQ)' from $(SHQ)'$2$(SHQ)'
|
initrepos: $1/CVS
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
$1/CVS:
|
||||||
$(TEST) ! -d $1/CVS || $(RD) $(subst /,$(DIRSEP),$1)
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
cd $(subst /,$(DIRSEP),$(dir $1)) && $(CVS) -z3 -d $2 co $(notdir $1)
|
@echo +++ Creating[cvs]: $(SHQ)'$1$(SHQ)' from $(SHQ)'$2$(SHQ)'
|
||||||
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
$(TEST) ! -d $1/CVS || $(RD) $(subst /,$(DIRSEP),$1)
|
||||||
|
cd $(subst /,$(DIRSEP),$(dir $1)) && $(CVS) -z3 -d $2 co $(notdir $1)
|
||||||
|
|
||||||
up-$1:
|
up-$1:
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
@echo +++ Updating[cvs]: $$(patsubst up-%,%,$$@) $(SHQ)($2$(SHQ))
|
@echo +++ Updating[cvs]: $$(patsubst up-%,%,$$@) $(SHQ)($2$(SHQ))
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
$$(pre_up_cmd-$1)
|
$$(pre_up_cmd-$1)
|
||||||
@cd $(subst /,$(DIRSEP),$1) >$(NULL) 2>&1 && $(CVS) $(CVSFLAGS) up $(CVSUP_FLAGS)
|
@cd $(subst /,$(DIRSEP),$1) >$(NULL) 2>&1 && $(CVS) $(CVSFLAGS) up $(CVSUP_FLAGS)
|
||||||
$$(post_up_cmd-$1)
|
$$(post_up_cmd-$1)
|
||||||
|
|
||||||
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define GIT_TMPL
|
define GIT_TMPL
|
||||||
.PHONY: pull-$1
|
|
||||||
updaterepos: pull-$1
|
|
||||||
ifneq (,$(filter http:% https:%,$2))
|
|
||||||
subrepos: $1/.git
|
|
||||||
clean-subrepos: $1/.git
|
|
||||||
else
|
|
||||||
.PHONY: $1/.git
|
|
||||||
initrepos: $1/.git
|
|
||||||
endif
|
|
||||||
DIR-$(notdir $1) := $1
|
DIR-$(notdir $1) := $1
|
||||||
$1/.git:
|
ifeq (,$(filter-out $(URL_FILTERS),$2))
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
.PHONY: pull-$1
|
||||||
@echo +++ Creating[git]: $(SHQ)'$1$(SHQ)' from $(SHQ)'$2$(SHQ)'
|
updaterepos: pull-$1
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
ifneq (,$(filter http:% https:%,$2))
|
||||||
ifeq (,$(filter http:% https:%,$2))
|
subrepos: $1/.git
|
||||||
$(TEST) ! -d $1 || $(RD) $(subst /,$(DIRSEP),$1)
|
clean-subrepos: $1/.git
|
||||||
|
else
|
||||||
|
.PHONY: $1/.git
|
||||||
|
initrepos: $1/.git
|
||||||
|
endif
|
||||||
|
$1/.git:
|
||||||
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
@echo +++ Creating[git]: $(SHQ)'$1$(SHQ)' from $(SHQ)'$2$(SHQ)'
|
||||||
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
ifneq (,$(filter http:% https:%,$2))
|
||||||
|
$(TEST) ! -d $1 || $(RD) $(subst /,$(DIRSEP),$1)
|
||||||
|
endif
|
||||||
|
$(GIT) clone $2 $1
|
||||||
|
|
||||||
|
pull-$1:
|
||||||
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
@echo +++ Updating[git]: $$(patsubst pull-%,%,$$@) $(SHQ)($2$(SHQ))
|
||||||
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
$$(pre_up_cmd-$1)
|
||||||
|
@cd $(subst /,$(DIRSEP),$1) >$(NULL) 2>&1 && $(GIT) pull $(GITPULL_FLAGS)
|
||||||
|
$$(post_up_cmd-$1)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
$(GIT) clone $2 $1
|
|
||||||
|
|
||||||
pull-$1:
|
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
@echo +++ Updating[git]: $$(patsubst pull-%,%,$$@) $(SHQ)($2$(SHQ))
|
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
$$(pre_up_cmd-$1)
|
|
||||||
@cd $(subst /,$(DIRSEP),$1) >$(NULL) 2>&1 && $(GIT) pull $(GITPULL_FLAGS)
|
|
||||||
$$(post_up_cmd-$1)
|
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define BZR_TMPL
|
define BZR_TMPL
|
||||||
.PHONY: pull-$1
|
|
||||||
updaterepos: pull-$1
|
|
||||||
ifneq (,$(filter http:% https:%,$2))
|
|
||||||
subrepos: $1/.bzr
|
|
||||||
clean-subrepos: $1/.bzr
|
|
||||||
else
|
|
||||||
.PHONY: $1/.bzr
|
|
||||||
initrepos: $1/.bzr
|
|
||||||
endif
|
|
||||||
DIR-$(notdir $1) := $1
|
DIR-$(notdir $1) := $1
|
||||||
$1/.bzr:
|
ifeq (,$(filter-out $(URL_FILTERS),$2))
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
.PHONY: pull-$1
|
||||||
@echo +++ Creating[bzr]: $(SHQ)'$1$(SHQ)' from $(SHQ)'$2$(SHQ)'
|
updaterepos: pull-$1
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
ifneq (,$(filter http:% https:%,$2))
|
||||||
ifeq (,$(filter http:% https:%,$2))
|
subrepos: $1/.bzr
|
||||||
$(TEST) ! -d $1 || $(RD) $(subst /,$(DIRSEP),$1)
|
clean-subrepos: $1/.bzr
|
||||||
|
else
|
||||||
|
.PHONY: $1/.bzr
|
||||||
|
initrepos: $1/.bzr
|
||||||
|
endif
|
||||||
|
$1/.bzr:
|
||||||
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
@echo +++ Creating[bzr]: $(SHQ)'$1$(SHQ)' from $(SHQ)'$2$(SHQ)'
|
||||||
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
ifneq (,$(filter http:% https:%,$2))
|
||||||
|
$(TEST) ! -d $1 || $(RD) $(subst /,$(DIRSEP),$1)
|
||||||
|
endif
|
||||||
|
$(BZR) branch $2 $1
|
||||||
|
|
||||||
|
pull-$1:
|
||||||
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
@echo +++ Updating[bzr]: $$(patsubst pull-%,%,$$@) $(SHQ)($2$(SHQ))
|
||||||
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
$$(pre_up_cmd-$1)
|
||||||
|
cd $(subst /,$(DIRSEP),$1) && $(BZR) pull $(BZRPULL_FLAGS)
|
||||||
|
$$(post_up_cmd-$1)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
$(BZR) branch $2 $1
|
|
||||||
|
|
||||||
pull-$1:
|
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
@echo +++ Updating[bzr]: $$(patsubst pull-%,%,$$@) $(SHQ)($2$(SHQ))
|
|
||||||
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
$$(pre_up_cmd-$1)
|
|
||||||
cd $(subst /,$(DIRSEP),$1) && $(BZR) pull $(BZRPULL_FLAGS)
|
|
||||||
$$(post_up_cmd-$1)
|
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user