X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fbtr;a=blobdiff_plain;f=share%2Fbtr%2Fsource%2Fgit.mk;fp=share%2Fbtr%2Fsource%2Fgit.mk;h=02744cd2cae9bc9caac56b71bd5df831ae38e7f7;hp=3808590450e2cc09deece2fd99a6aa861e357d98;hb=36ab11ad208509a177f3976333d0728069e06ee8;hpb=3ea412c37b536f7f5f6b179c583f755ab70f1934 diff --git a/share/btr/source/git.mk b/share/btr/source/git.mk index 3808590..02744cd 100644 --- a/share/btr/source/git.mk +++ b/share/btr/source/git.mk @@ -1,31 +1,31 @@ -SOURCE_CLEAN=false +BTR_SOURCE_CLEAN=false .PHONY: fetch all clean .SUFFIXES: -all: $(BRANCH_DIR) clean fetch - $(SAY) "Merging $(BRANCH) of $(REPO)..." - cd $(BRANCH_DIR) && \ - git merge $(QUIET_FLAG) --ff-only; +all: $(BTR_BRANCH_DIR) clean fetch + $(SAY) "Merging $(BTR_BRANCH) of $(BTR_REPO)..." + cd $(BTR_BRANCH_DIR) && \ + git merge $(BTR_QUIET_FLAG) --ff-only; -clean: $(BRANCH_DIR) - if $(SOURCE_CLEAN); \ +clean: $(BTR_BRANCH_DIR) + if $(BTR_SOURCE_CLEAN); \ then \ - cd $(BRANCH_DIR) && \ - git reset --hard $(QUIET_FLAGS); \ + cd $(BTR_BRANCH_DIR) && \ + git reset --hard $(BTR_QUIET_FLAGS); \ fi; -fetch: $(CLEAN_DIR) - $(SAY) "Fetching $(REPO)..." - cd $(CLEAN_DIR) && \ - git fetch $(QUIET_FLAG); +fetch: $(BTR_REPO_DIR) + $(SAY) "Fetching $(BTR_REPO)..." + cd $(BTR_REPO_DIR) && \ + git fetch $(BTR_QUIET_FLAG); -$(CLEAN_DIR): - $(SAY) "Cloning from $(SOURCE_ARGS)..." - git clone $(QUIET_FLAG) $(SOURCE_ARGS) $(CLEAN_DIR); +$(BTR_REPO_DIR): + $(SAY) "Cloning from $(BTR_SOURCE_ARGS)..." + git clone $(BTR_QUIET_FLAG) $(BTR_SOURCE_ARGS) $(BTR_REPO_DIR); -$(BRANCH_DIR): $(CLEAN_DIR) - $(SAY) "Creating workdir for $(BRANCH)" - git-new-workdir $(CLEAN_DIR) $(BRANCH_DIR) $(BRANCH) +$(BTR_BRANCH_DIR): $(BTR_REPO_DIR) + $(SAY) "Creating workdir for $(BTR_BRANCH)" + git-new-workdir $(BTR_REPO_DIR) $(BTR_BRANCH_DIR) $(BTR_BRANCH) # vim: noet