- commit
- 9224d31cf6fd63b6b0a29d43185ccc64035449ec
- parent
- 3fbef5c9b0dee2106537a6718e2380eaa6e27f15
- Author
- Hiltjo Posthuma <hiltjo@codemadness.org>
- Date
- 2019-02-09 14:02
Makefile: add DOCPREFIX for installing docs in ports change installed doc from /usr/local/share/stagit to /usr/local/share/doc/stagit
Diffstat
M | Makefile | 19 | ++++++++++--------- |
M | config.mk | 1 | + |
2 files changed, 11 insertions, 9 deletions
diff --git a/Makefile b/Makefile
@@ -2,6 +2,7 @@ include config.mk 2 2 3 3 NAME = stagit 4 4 VERSION = 0.9 -1 5 5 6 SRC = \ 6 7 stagit.c\ 7 8 stagit-index.c @@ -64,14 +65,14 @@ install: all 64 65 cp -f ${BIN} ${DESTDIR}${PREFIX}/bin 65 66 for f in ${BIN}; do chmod 755 ${DESTDIR}${PREFIX}/bin/$$f; done 66 67 # installing example files.67 -1 mkdir -p ${DESTDIR}${PREFIX}/share/${NAME}-1 68 mkdir -p ${DESTDIR}${DOCPREFIX} 68 69 cp -f style.css\ 69 70 favicon.png\ 70 71 logo.png\ 71 72 example_create.sh\ 72 73 example_post-receive.sh\ 73 74 README\74 -1 ${DESTDIR}${PREFIX}/share/${NAME}-1 75 ${DESTDIR}${DOCPREFIX} 75 76 # installing manual pages. 76 77 mkdir -p ${DESTDIR}${MANPREFIX}/man1 77 78 cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1 @@ -82,13 +83,13 @@ uninstall: 82 83 for f in ${BIN}; do rm -f ${DESTDIR}${PREFIX}/bin/$$f; done 83 84 # removing example files. 84 85 rm -f \85 -1 ${DESTDIR}${PREFIX}/share/${NAME}/style.css\86 -1 ${DESTDIR}${PREFIX}/share/${NAME}/favicon.png\87 -1 ${DESTDIR}${PREFIX}/share/${NAME}/logo.png\88 -1 ${DESTDIR}${PREFIX}/share/${NAME}/example_create.sh\89 -1 ${DESTDIR}${PREFIX}/share/${NAME}/example_post-receive.sh\90 -1 ${DESTDIR}${PREFIX}/share/${NAME}/README91 -1 -rmdir ${DESTDIR}${PREFIX}/share/${NAME}-1 86 ${DESTDIR}${DOCPREFIX}/style.css\ -1 87 ${DESTDIR}${DOCPREFIX}/favicon.png\ -1 88 ${DESTDIR}${DOCPREFIX}/logo.png\ -1 89 ${DESTDIR}${DOCPREFIX}/example_create.sh\ -1 90 ${DESTDIR}${DOCPREFIX}/example_post-receive.sh\ -1 91 ${DESTDIR}${DOCPREFIX}/README -1 92 -rmdir ${DESTDIR}${DOCPREFIX} 92 93 # removing manual pages. 93 94 for m in ${MAN1}; do rm -f ${DESTDIR}${MANPREFIX}/man1/$$m; done 94 95
diff --git a/config.mk b/config.mk
@@ -3,6 +3,7 @@ 3 3 # paths 4 4 PREFIX = /usr/local 5 5 MANPREFIX = ${PREFIX}/man -1 6 DOCPREFIX = ${PREFIX}/share/doc/stagit 6 7 7 8 # compiler and linker 8 9 #CC = cc