URI: 
       Makefile: add DOCPREFIX for installing docs in ports - stagit-gopher - A git gopher frontend. (mirror)
  HTML git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
   DIR README
   DIR LICENSE
       ---
   DIR commit 700588116af76c9a3989c8356952493d592d792b
   DIR parent 4011430d5117b1a33e7a3855d8d83c2862d5552d
  HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sat,  9 Feb 2019 15:11:35 +0100
       
       Makefile: add DOCPREFIX for installing docs in ports
       
       change installed doc from /usr/local/share/stagit-gopher to
       /usr/local/share/doc/stagit-gopher
       
       Diffstat:
         M Makefile                            |      13 +++++++------
         M config.mk                           |       1 +
       
       2 files changed, 8 insertions(+), 6 deletions(-)
       ---
   DIR diff --git a/Makefile b/Makefile
       @@ -2,6 +2,7 @@ include config.mk
        
        NAME = stagit-gopher
        VERSION = 0.9
       +
        SRC = \
                stagit-gopher.c\
                stagit-gopher-index.c
       @@ -62,11 +63,11 @@ 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 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
       @@ -77,10 +78,10 @@ uninstall:
                for f in ${BIN}; do rm -f ${DESTDIR}${PREFIX}/bin/$$f; done
                # removing example files.
                rm -f \
       -                ${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}/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
        
   DIR diff --git a/config.mk b/config.mk
       @@ -3,6 +3,7 @@
        # paths
        PREFIX = /usr/local
        MANPREFIX = ${PREFIX}/man
       +DOCPREFIX = ${PREFIX}/share/doc/stagit-gopher
        
        # compiler and linker
        #CC = cc