summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2019-02-08 16:27:26 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2019-02-08 16:27:26 +0100
commit7b75e89fc9be1b364a12ce9198c785ad9acbabbf (patch)
treebd963531c5d28a238666afc32fd6a1e3ef3a1b37
parentb3e9ae52792c1cbedcb701dcfafa1fe430f53e41 (diff)
Makefile: add DOCPREFIX for installing docs in ports
change installed doc from /usr/local/share/sfeed to /usr/local/share/doc/sfeed
-rw-r--r--Makefile15
-rw-r--r--config.mk1
2 files changed, 9 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 382c2a5..a551faa 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ include config.mk
NAME = sfeed
VERSION = 0.9.7
+
BIN = \
sfeed\
sfeed_frames\
@@ -95,12 +96,12 @@ install: all
cp -f ${BIN} ${SCRIPTS} "${DESTDIR}${PREFIX}/bin"
for f in ${BIN} ${SCRIPTS}; do chmod 755 "${DESTDIR}${PREFIX}/bin/$$f"; done
# installing example files.
- mkdir -p "${DESTDIR}${PREFIX}/share/${NAME}"
+ mkdir -p "${DESTDIR}${DOCPREFIX}"
cp -f sfeedrc.example\
style.css\
README\
README.xml\
- "${DESTDIR}${PREFIX}/share/${NAME}"
+ "${DESTDIR}${DOCPREFIX}"
# installing manual pages for general commands: section 1.
mkdir -p "${DESTDIR}${MANPREFIX}/man1"
cp -f ${MAN1} "${DESTDIR}${MANPREFIX}/man1"
@@ -115,11 +116,11 @@ uninstall:
for f in ${BIN} ${SCRIPTS}; do rm -f "${DESTDIR}${PREFIX}/bin/$$f"; done
# removing example files.
rm -f \
- "${DESTDIR}${PREFIX}/share/${NAME}/sfeedrc.example"\
- "${DESTDIR}${PREFIX}/share/${NAME}/style.css"\
- "${DESTDIR}${PREFIX}/share/${NAME}/README"\
- "${DESTDIR}${PREFIX}/share/${NAME}/README.xml"
- -rmdir "${DESTDIR}${PREFIX}/share/${NAME}"
+ "${DESTDIR}${DOCPREFIX}/sfeedrc.example"\
+ "${DESTDIR}${DOCPREFIX}/style.css"\
+ "${DESTDIR}${DOCPREFIX}/README"\
+ "${DESTDIR}${DOCPREFIX}/README.xml"
+ -rmdir "${DESTDIR}${DOCPREFIX}"
# removing manual pages.
for m in ${MAN1}; do rm -f "${DESTDIR}${MANPREFIX}/man1/$$m"; done
for m in ${MAN5}; do rm -f "${DESTDIR}${MANPREFIX}/man5/$$m"; done
diff --git a/config.mk b/config.mk
index 673cfd8..da98920 100644
--- a/config.mk
+++ b/config.mk
@@ -3,6 +3,7 @@
# paths
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/man
+DOCPREFIX = ${PREFIX}/share/doc/sfeed
# compiler and linker
CC = cc