Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 58 lines (52 sloc) 2.299 kb
d72acba Vincent Driessen Added inline license terms to all source files.
authored
1 #
2 # Copyright 2010 Vincent Driessen. All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are met:
6 #
7 # 1. Redistributions of source code must retain the above copyright notice,
8 # this list of conditions and the following disclaimer.
9 #
10 # 2. Redistributions in binary form must reproduce the above copyright
11 # notice, this list of conditions and the following disclaimer in the
12 # documentation and/or other materials provided with the distribution.
13 #
14 # THIS SOFTWARE IS PROVIDED BY VINCENT DRIESSEN ``AS IS'' AND ANY EXPRESS OR
15 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
16 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
17 # EVENT SHALL VINCENT DRIESSEN OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
18 # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
19 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 # OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
22 # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
23 # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 #
25 # The views and conclusions contained in the software and documentation are
26 # those of the authors and should not be interpreted as representing official
27 # policies, either expressed or implied, of Vincent Driessen.
28 #
e0b54c0 Vincent Driessen Strip the GIT_EXEC_PATH Makefile parameter. Replaced it by the more Unix...
authored
29 prefix=/usr/local
a93a535 Benedikt Böhm add simple make install target
hollow authored
30
c3b7db9 Vincent Driessen Added a nicer way of installing/uninstalling git-flow.
authored
31 # files that need mode 755
32 EXEC_FILES=git-flow
33
34 # files that need mode 644
c7ea9b2 Vincent Driessen Fix: add init to Makefile.
authored
35 SCRIPT_FILES =git-flow-init
36 SCRIPT_FILES+=git-flow-feature
c3b7db9 Vincent Driessen Added a nicer way of installing/uninstalling git-flow.
authored
37 SCRIPT_FILES+=git-flow-hotfix
38 SCRIPT_FILES+=git-flow-release
39 SCRIPT_FILES+=git-flow-support
40 SCRIPT_FILES+=git-flow-version
c3607ac Vincent Driessen Put all common functions into separate file gitflow-common.
authored
41 SCRIPT_FILES+=gitflow-common
42 SCRIPT_FILES+=gitflow-shFlags
c3b7db9 Vincent Driessen Added a nicer way of installing/uninstalling git-flow.
authored
43
c7bbfcf Vincent Driessen Deliberately add a Makefile target to prevent accidental installation of...
authored
44 all:
e9d2d04 Vincent Driessen Add TODO item for adding installation of shFlags, too.
authored
45 @echo "usage: make install"
46 @echo " make uninstall"
c7bbfcf Vincent Driessen Deliberately add a Makefile target to prevent accidental installation of...
authored
47
a93a535 Benedikt Böhm add simple make install target
hollow authored
48 install:
13c9482 Vincent Driessen Added instructions to first fetch submodules before installing.
authored
49 @test -f gitflow-shFlags || (echo "Run 'git submodule init && git submodule update' first." ; exit 1 )
e0b54c0 Vincent Driessen Strip the GIT_EXEC_PATH Makefile parameter. Replaced it by the more Unix...
authored
50 install -d -m 0755 $(prefix)/bin
51 install -m 0755 $(EXEC_FILES) $(prefix)/bin
52 install -m 0644 $(SCRIPT_FILES) $(prefix)/bin
a93a535 Benedikt Böhm add simple make install target
hollow authored
53
67f781f Vincent Driessen Add 'uninstall' target, too.
authored
54 uninstall:
e0b54c0 Vincent Driessen Strip the GIT_EXEC_PATH Makefile parameter. Replaced it by the more Unix...
authored
55 test -d $(prefix)/bin && \
56 cd $(prefix)/bin && \
c3b7db9 Vincent Driessen Added a nicer way of installing/uninstalling git-flow.
authored
57 rm -f $(EXEC_FILES) $(SCRIPT_FILES)
Something went wrong with that request. Please try again.