From: Lars Hjemli Date: Sat, 8 Sep 2007 09:59:04 +0000 (+0200) Subject: Makefile: add missing references to DESTDIR X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/fa31c5ed4839575c3ef3f6f0823fc2b4af47dbfd?hp=898f5f89d3e2c6100f7e0ab6fc4a200b8fc75bb5 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 --- diff --git a/Makefile b/Makefile index 7857b8e..4b39b91 100644 --- a/Makefile +++ b/Makefile @@ -31,9 +31,9 @@ VERSION: force-version CFLAGS += -g -Wall -Igit CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER)' CFLAGS += -DCGIT_VERSION='"$(CGIT_VERSION)"' -CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"' +CFLAGS += -DCGIT_CONFIG='"$(DESTDIR)$(CGIT_CONFIG)"' CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"' -CFLAGS += -DCGIT_CACHE_ROOT='"$(CACHE_ROOT)"' +CFLAGS += -DCGIT_CACHE_ROOT='"$(DESTDIR)$(CACHE_ROOT)"' cgit: cgit.c $(OBJECTS)