forked from nvie/gitflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (24 loc) · 812 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
GIT_EXEC_PATH=`git --exec-path 2>/dev/null || echo /usr/libexec/git-core`
# files that need mode 755
EXEC_FILES=git-flow
# files that need mode 644
SCRIPT_FILES =git-flow-init
SCRIPT_FILES+=git-flow-feature
SCRIPT_FILES+=git-flow-hotfix
SCRIPT_FILES+=git-flow-release
SCRIPT_FILES+=git-flow-support
SCRIPT_FILES+=git-flow-version
SCRIPT_FILES+=gitflow-common
SCRIPT_FILES+=gitflow-shFlags
all:
@echo "usage: make install"
@echo " make uninstall"
install:
@test -f gitflow-shFlags || (echo "Run 'git submodule init && git submodule update' first." ; exit 1 )
install -d -m 0755 $(GIT_EXEC_PATH)
install -m 0755 $(EXEC_FILES) $(GIT_EXEC_PATH)
install -m 0644 $(SCRIPT_FILES) $(GIT_EXEC_PATH)
uninstall:
test -d $(GIT_EXEC_PATH) && \
cd $(GIT_EXEC_PATH) && \
rm -f $(EXEC_FILES) $(SCRIPT_FILES)