Skip to content

Commit

Permalink
Merge branch 'improvements' into issues/issue7
Browse files Browse the repository at this point in the history
* improvements:
  Makefile: Add new target nonroot to build non-root mxqd
  Makefile: Define prefix variables in CFLAGS
  • Loading branch information
mariux committed Oct 23, 2015
2 parents 51af9fa + 6f75345 commit f2dc9a0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,15 @@ CFLAGS += -DMXQ_VERSION=\"${MXQ_VERSION}\"
CFLAGS += -DMXQ_VERSIONFULL=\"${MXQ_VERSIONFULL}\"
CFLAGS += -DMXQ_VERSIONDATE=\"${MXQ_VERSIONDATE}\"
CFLAGS += -DMXQ_VERSIONEXTRA=\"${MXQ_VERSIONEXTRA}\"
CFLAGS += -DPREFIX=\"${PREFIX}\"
CFLAGS += -DEPREFIX=\"${EPREFIX}\"
CFLAGS += -DSBINDIR=\"${SBINDIR}\"
CFLAGS += -DBINDIR=\"${BINDIR}\"
CFLAGS += -DLIBDIR=\"${LIBDIR}\"
CFLAGS += -DLIBEXECDIR=\"${LIBEXECDIR}\"
CFLAGS += -DDATADIR=\"${DATADIR}\"
CFLAGS += -DMANDIR=\"${MANDIR}\"
CFLAGS += -DSYSCONFDIR=\"${SYSCONFDIR}\"
CFLAGS += $(EXTRA_CFLAGS)

########################################################################
Expand Down Expand Up @@ -175,6 +184,10 @@ manpages/%: manpages/%.xml

all: build

.PHONY: nonroot
nonroot: CFLAGS += -DRUNASNORMALUSER
nonroot: all

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

.PHONY: test
Expand Down

0 comments on commit f2dc9a0

Please sign in to comment.