Skip to content

Commit

Permalink
Makefile: Install lighttpd.conf to SYSCONFDIR/mxq
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Aug 27, 2015
1 parent 454d4e1 commit 2172543
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}))
Expand Down Expand Up @@ -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)

########################################################################

Expand Down

0 comments on commit 2172543

Please sign in to comment.