Introduction
Introduction Statistics Contact Development Disclaimer Help
tMakefile: add DOCPREFIX for installing docs in ports - stagit - static git pag…
git clone git://src.adamsgaard.dk/stagit
Log
Files
Refs
README
LICENSE
---
commit 9224d31cf6fd63b6b0a29d43185ccc64035449ec
parent 3fbef5c9b0dee2106537a6718e2380eaa6e27f15
Author: Hiltjo Posthuma <[email protected]>
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:
M Makefile | 19 ++++++++++---------
M config.mk | 1 +
2 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/Makefile b/Makefile
t@@ -2,6 +2,7 @@ include config.mk
NAME = stagit
VERSION = 0.9
+
SRC = \
stagit.c\
stagit-index.c
t@@ -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
t@@ -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
t@@ -3,6 +3,7 @@
# paths
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/man
+DOCPREFIX = ${PREFIX}/share/doc/stagit
# compiler and linker
#CC = cc
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.