fix typo
[m6w6/btr] / share / btr / source / git.mk
1 BTR_SOURCE_CLEAN=false
2
3 .PHONY: fetch all clean
4 .SUFFIXES:
5
6 all: $(BTR_BRANCH_DIR) clean fetch
7 $(SAY) "Merging $(BTR_BRANCH) of $(BTR_REPO)..."
8 cd $(BTR_BRANCH_DIR) && \
9 git merge $(BTR_QUIET_FLAG) --ff-only;
10
11 clean: $(BTR_BRANCH_DIR)
12 if $(BTR_SOURCE_CLEAN); \
13 then \
14 cd $(BTR_BRANCH_DIR) && \
15 git reset --hard $(BTR_QUIET_FLAG); \
16 fi;
17
18 fetch: $(BTR_REPO_DIR)
19 $(SAY) "Fetching $(BTR_REPO)..."
20 cd $(BTR_REPO_DIR) && \
21 git fetch $(BTR_QUIET_FLAG);
22
23 $(BTR_REPO_DIR):
24 $(SAY) "Cloning from $(BTR_SOURCE_ARGS)..."
25 git clone $(BTR_QUIET_FLAG) $(BTR_SOURCE_ARGS) $(BTR_REPO_DIR);
26
27 $(BTR_BRANCH_DIR): $(BTR_REPO_DIR)
28 $(SAY) "Creating workdir for $(BTR_BRANCH)"
29 git-new-workdir $(BTR_REPO_DIR) $(BTR_BRANCH_DIR) $(BTR_BRANCH)
30
31 # vim: noet