From 2172543ccc6cc4b87a3928e4227571c454682487 Mon Sep 17 00:00:00 2001 From: Marius Tolzmann Date: Thu, 27 Aug 2015 14:55:00 +0200 Subject: [PATCH] Makefile: Install lighttpd.conf to SYSCONFDIR/mxq --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a5ffcad..71f7c3c 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,11 @@ endif ######################################################################## +### strip /mxq from SYSCONFDIR if set +ifeq ($(notdir ${SYSCONFDIR}),mxq) + override SYSCONFDIR := $(patsubst %/,%,$(dir ${SYSCONFDIR})) +endif + ### strip /mxq from LIBEXECDIR if set ifeq ($(notdir ${LIBEXECDIR}),mxq) override LIBEXECDIR := $(patsubst %/,%,$(dir ${LIBEXECDIR})) @@ -506,7 +511,7 @@ install:: web/pages/mxq/mxq $(call quiet-install,0755,$^,${DESTDIR}${CGIDIR}/mxq) install:: web/lighttpd.conf - $(call quiet-install,0644,$^,${DESTDIR}${LIBEXECDIR}/mxq/lighttpd.conf) + $(call quiet-install,0644,$^,${DESTDIR}${SYSCONFDIR}/mxq/lighttpd.conf) ########################################################################