summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2020-09-20 23:10:46 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2020-09-20 23:10:46 +0300
commit20dd4cfaf6171f3bd5155982b1227e00c9445d5b (patch)
tree47fac8c56b44ea4f03e60c8cfea2cb99454a307e /Makefile
parent4cf0b9ffec201dff3993fdc9438f0ca083d62d60 (diff)
Makefile: fix error with manpage path
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 457a5f99..d1e77a36 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,8 @@ MIN_RUSTC ?= 1.39.0
CARGO_BIN ?= cargo
# Installation parameters
-MANPAGES ?= docs/meli.1 docs/meli.conf.5 docs/meli-themes.5
+DOCS_SUBDIR ?= docs/
+MANPAGES ?= meli.1 meli.conf.5 meli-themes.5
FEATURES ?= --features "${MELI_FEATURES}"
MANPATHS != ACCUM="";for m in `manpath 2> /dev/null | tr ':' ' '`; do if [ -d "$${m}" ]; then REAL_PATH=`cd $${m} && pwd` ACCUM="$${ACCUM}:$${REAL_PATH}";fi;done;echo -n $${ACCUM} | sed 's/^://'
@@ -120,7 +121,7 @@ install-doc:
SECTION=`echo $${MANPAGE} | rev | cut -d "." -f 1`; \
MANPAGEPATH=${DESTDIR}${MANDIR}/man$${SECTION}/$${MANPAGE}.gz; \
echo " * installing $${MANPAGE} → ${GREEN}$${MANPAGEPATH}${ANSI_RESET}"; \
- gzip -n < $${MANPAGE} > $${MANPAGEPATH} \
+ gzip -n < ${DOCS_SUBDIR}$${MANPAGE} > $${MANPAGEPATH} \
; done ; \
(case ":${MANPATHS}:" in \
*:${DESTDIR}${MANDIR}:*) echo -n "";; \