]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/Make: minimum adjustment for BSD environment
authorJunio C Hamano <gitster@pobox.com>
Fri, 8 May 2009 04:43:26 +0000 (21:43 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 May 2009 04:43:26 +0000 (21:43 -0700)
Make

diff --git a/Make b/Make
index 35ac4888323d0ceb446400ef12d47313a04129aa..f5daff751f53d246fd60399b26bacb7d62bbaa92 100755 (executable)
--- a/Make
+++ b/Make
@@ -1,7 +1,5 @@
 #!/bin/sh
 
-G=/opt/packrat/playpen/public/in-place/git/index/gitweb_config.perl
-
 case "$(git version 2>/dev/null)" in
 "git version"*)
        GIT=git ;;
@@ -101,13 +99,22 @@ sh -c 'git describe --abbrev=4 HEAD' >/dev/null 2>&1 || {
 
 d="$d ASCIIDOC_NO_ROFF=YesPlease ASCIIDOC8=YesPlease"
 
+# Platform hack
+if test -z "${make:+set}" && test -x /usr/local/bin/gmake
+then
+       make=gmake
+fi
+
 CFLAGS="$O $Wall -g"
+OK_TO_USE_CFLAGS=Yes
+if test -n "${NO_CFLAGS+set}"
+then
+       unset OK_TO_USE_CFLAGS
+fi
 
-make $d \
-     GITWEB_CONFIG=$G \
-     PYTHON_PATH=/usr/bin/python2.4 \
+${make-make} $d \
      ETC_GITCONFIG=$prefix/etc/gitconfig \
-     CFLAGS="$CFLAGS" \
+     ${OK_TO_USE_CFLAGS+"CFLAGS=$CFLAGS"} \
      ${tests:+"T=$tests"} \
      "$@"
 status=$?