Makefile: optionally switch to a specific git branch
* mk/default.mk (GIT_BRANCH): New configuration variable to specify a Git branch that is checked out before updating. * mk/targets.mk (up0 up1 up2): Check out the branch in GIT_BRANCH before doing an update. Stays on the current branch if GIT_BRANCH is undefined or empty.
This commit is contained in:
parent
49c128c300
commit
01b42f91de
|
@ -22,6 +22,10 @@ infodir = $(prefix)/info
|
|||
# Define if you only need info documentation, the default includes html and pdf
|
||||
#ORG_MAKE_DOC = info # html pdf
|
||||
|
||||
# Define which git branch to switch to during update. Does not switch
|
||||
# the branch when undefined.
|
||||
GIT_BRANCH =
|
||||
|
||||
# Define if you want to include some (or all) files from contrib/lisp
|
||||
# just the filename please (no path prefix, no .el suffix), maybe with globbing
|
||||
#ORG_ADD_CONTRIB = ox-* # e.g. the contributed exporter
|
||||
|
|
|
@ -108,6 +108,7 @@ endif
|
|||
|
||||
up0:: cleanaddcontrib
|
||||
up0 up1 up2::
|
||||
git checkout $(GIT_BRANCH)
|
||||
git remote update
|
||||
git pull
|
||||
up1 up2:: all
|
||||
|
|
Loading…
Reference in New Issue