summaryrefslogtreecommitdiffabout
authorLars Hjemli <hjemli@gmail.com>2010-11-09 17:08:38 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2010-11-09 23:20:50 (UTC)
commit53f487dd71b597b0771359f2125388af0913f25e (patch) (side-by-side diff)
treec1eef6fd5af9d53790f136cc9e19499668f2e8b9
parent1415f3f3e017d0123e850707c55cb7e5e5887406 (diff)
downloadcgit-53f487dd71b597b0771359f2125388af0913f25e.zip
cgit-53f487dd71b597b0771359f2125388af0913f25e.tar.gz
cgit-53f487dd71b597b0771359f2125388af0913f25e.tar.bz2
Makefile: avoid spurious rebuilds of git sources due to `sudo make`
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 15c7c20..be1d796 100644
--- a/Makefile
+++ b/Makefile
@@ -123,12 +123,14 @@ CFLAGS += -g -Wall -Igit
CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER)'
CFLAGS += -DCGIT_VERSION='"$(CGIT_VERSION)"'
CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"'
CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"'
CFLAGS += -DCGIT_CACHE_ROOT='"$(CACHE_ROOT)"'
+GIT_OPTIONS = prefix=/usr
+
ifdef NO_ICONV
CFLAGS += -DNO_ICONV
endif
ifdef NO_STRCASESTR
CFLAGS += -DNO_STRCASESTR
endif