X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Make;h=e749ca48932e73cc2012010cae3e1d26d3cd0e39;hb=ba776ae4b85b10c278c618cada2b0caa1c50ad03;hp=6750f7070d421e91a7b0aa22cdee4df839f5c9b5;hpb=e6e947f5de840b64e5547006b6660c4dcef6d31e;p=git.git diff --git a/Make b/Make index 6750f707..e749ca48 100755 --- a/Make +++ b/Make @@ -1,16 +1,29 @@ #!/bin/sh # DDD=' -DUSE_SYMLINK_HEAD=0' - -PATH=/usr/bin:/bin +# PATH=/usr/bin:/bin +PATH=$HOME/bin/Linux:/usr/bin:/bin LANG=C LC_CTYPE=C export PATH LANG LC_CTYPE -#make prefix=/usr/local \ -make bindir=$HOME/bin/Linux \ +case "`git symbolic-ref HEAD`" in +refs/heads/next) + d="bindir=$HOME/bin/Linux gitexecdir=$HOME/bin/Linux" ;; +refs/heads/maint) + d="prefix=$HOME/git-maint" ;; +refs/heads/master) + d="prefix=$HOME/git-master" ;; +refs/heads/pu) + d="prefix=$HOME/git-pu" ;; +*) + d="prefix=$HOME/git-test" ;; +esac + +: ${O=-O2} +make $d \ PYTHON_PATH=/usr/bin/python2.4 \ - CFLAGS='-Os -Wall -Wdeclaration-after-statement -g'"$DDD" \ + CFLAGS="$O -Wall -Wdeclaration-after-statement -g" \ WITH_SEND_EMAIL=YesPlease \ WITH_SVNIMPORT=YesPlease \ "$@"