commit 9224d31cf6fd63b6b0a29d43185ccc64035449ec (patch)
parent 3fbef5c9b0dee2106537a6718e2380eaa6e27f15
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 9 Feb 2019 15:02:38 +0100
Makefile: add DOCPREFIX for installing docs in ports
change installed doc from /usr/local/share/stagit to /usr/local/share/doc/stagit
Diffstat:
2 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/Makefile b/Makefile
@@ -2,6 +2,7 @@ include config.mk
NAME = stagit
VERSION = 0.9
+
SRC = \
stagit.c\
stagit-index.c
@@ -64,14 +65,14 @@ install: all
cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
for f in ${BIN}; do chmod 755 ${DESTDIR}${PREFIX}/bin/$$f; done
# installing example files.
- mkdir -p ${DESTDIR}${PREFIX}/share/${NAME}
+ mkdir -p ${DESTDIR}${DOCPREFIX}
cp -f style.css\
favicon.png\
logo.png\
example_create.sh\
example_post-receive.sh\
README\
- ${DESTDIR}${PREFIX}/share/${NAME}
+ ${DESTDIR}${DOCPREFIX}
# installing manual pages.
mkdir -p ${DESTDIR}${MANPREFIX}/man1
cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
@@ -82,13 +83,13 @@ uninstall:
for f in ${BIN}; do rm -f ${DESTDIR}${PREFIX}/bin/$$f; done
# removing example files.
rm -f \
- ${DESTDIR}${PREFIX}/share/${NAME}/style.css\
- ${DESTDIR}${PREFIX}/share/${NAME}/favicon.png\
- ${DESTDIR}${PREFIX}/share/${NAME}/logo.png\
- ${DESTDIR}${PREFIX}/share/${NAME}/example_create.sh\
- ${DESTDIR}${PREFIX}/share/${NAME}/example_post-receive.sh\
- ${DESTDIR}${PREFIX}/share/${NAME}/README
- -rmdir ${DESTDIR}${PREFIX}/share/${NAME}
+ ${DESTDIR}${DOCPREFIX}/style.css\
+ ${DESTDIR}${DOCPREFIX}/favicon.png\
+ ${DESTDIR}${DOCPREFIX}/logo.png\
+ ${DESTDIR}${DOCPREFIX}/example_create.sh\
+ ${DESTDIR}${DOCPREFIX}/example_post-receive.sh\
+ ${DESTDIR}${DOCPREFIX}/README
+ -rmdir ${DESTDIR}${DOCPREFIX}
# removing manual pages.
for m in ${MAN1}; do rm -f ${DESTDIR}${MANPREFIX}/man1/$$m; done
diff --git a/config.mk b/config.mk
@@ -3,6 +3,7 @@
# paths
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/man
+DOCPREFIX = ${PREFIX}/share/doc/stagit
# compiler and linker
#CC = cc