Skip to content

Commit

Permalink
web/Makefile: Install cgi to CGIDIR (defaults to LIBEXECDIR/mxq/cgi)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Aug 11, 2015
1 parent 0949516 commit 1f33b20
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ ifeq ($(notdir ${LIBEXECDIR}),mxq)
override LIBEXECDIR := $(patsubst %/,%,$(dir ${LIBEXECDIR}))
endif

CGIDIR = ${LIBEXECDIR}/mxq/cgi

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

MXQ_MYSQL_DEFAULT_FILE = ${SYSCONFDIR}/mxq/mysql.cnf
Expand Down Expand Up @@ -179,6 +181,7 @@ install::
$(call quiet-installdir,0755,${DESTDIR}${SBINDIR})
$(call quiet-installdir,0755,${DESTDIR}${SYSCONFDIR}/mxq)
$(call quiet-installdir,0755,${DESTDIR}${MAN1DIR})
$(call quiet-installdir,0755,${DESTDIR}${CGIDIR})

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

Expand Down Expand Up @@ -419,6 +422,13 @@ clean: CLEAN += mxqsub.1

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

build: web/pages/mxq/mxq

install:: web/pages/mxq/mxq
$(call quiet-install,0755,$^,${DESTDIR}${CGIDIR}/mxq)

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

test_mx_util.o: $(mx_util.h)
clean: CLEAN += test_mx_util.o

Expand Down

0 comments on commit 1f33b20

Please sign in to comment.