about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorLars Hjemli2007-09-08 11:59:04 +0200
committerLars Hjemli2007-09-08 11:59:04 +0200
commitfa31c5ed4839575c3ef3f6f0823fc2b4af47dbfd (patch)
treecf7d8ef01dfba52ee4c0fb40160d24e4d6041c81
parentMake cgit honor CACHE_ROOT as defined in Makefile (diff)
downloadcgit-fa31c5ed4839575c3ef3f6f0823fc2b4af47dbfd.tar.gz
cgit-fa31c5ed4839575c3ef3f6f0823fc2b4af47dbfd.zip
Makefile: add missing references to DESTDIR
When cgit is built it needs to get CGIT_CONFIG and CGIT_CACHE_ROOT prefix
with DESTDIR.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile index 7857b8e..4b39b91 100644 --- a/Makefile +++ b/Makefile
@@ -31,9 +31,9 @@ VERSION: force-version
31CFLAGS += -g -Wall -Igit 31CFLAGS += -g -Wall -Igit
32CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER)' 32CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER)'
33CFLAGS += -DCGIT_VERSION='"$(CGIT_VERSION)"' 33CFLAGS += -DCGIT_VERSION='"$(CGIT_VERSION)"'
34CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"' 34CFLAGS += -DCGIT_CONFIG='"$(DESTDIR)$(CGIT_CONFIG)"'
35CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"' 35CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"'
36CFLAGS += -DCGIT_CACHE_ROOT='"$(CACHE_ROOT)"' 36CFLAGS += -DCGIT_CACHE_ROOT='"$(DESTDIR)$(CACHE_ROOT)"'
37 37
38 38
39cgit: cgit.c $(OBJECTS) 39cgit: cgit.c $(OBJECTS)