Add a manpage and makefile logic for manpage to clic. - clic - Clic is an command line interactive client for gopher written in Common LISP
 (HTM) git clone git://bitreich.org/clic/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/clic/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit ce97c575a3ee47a5507862d0c3bf8f353da35897
 (DIR) parent e64d93cd6c81fafb1c229a6b06d5aef6e100a834
 (HTM) Author: Christoph Lohmann <20h@r-36.net>
       Date:   Sun,  4 Feb 2018 12:07:44 +0100
       
       Add a manpage and makefile logic for manpage to clic.
       
       Diffstat:
         M Makefile                            |      10 +++++++++-
       
       1 file changed, 9 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/Makefile b/Makefile
       @@ -2,11 +2,13 @@
        # See the LICENSE file for copyright and license details.
        .POSIX:
        
       +VERSION = 0.1
       +
        BIN    = clic
        LISP   = ecl
        PREFIX = /usr
        BINDIR = ${PREFIX}/bin
       -MANDIR = ${PREFIX}/share/man/man1
       +MANDIR = ${PREFIX}/share/man
        
        all: extension.so ${BIN}
        
       @@ -25,10 +27,16 @@ install: ${BIN}
                @mkdir -p "${DESTDIR}${BINDIR}"
                @cp -f clic "${DESTDIR}${BINDIR}/${BIN}"
                @chmod 755 "${DESTDIR}${BINDIR}/${BIN}"
       +        @echo installing manual page to ${DESTDIR}${MANDIR}/man1
       +        @mkdir -p ${DESTDIR}${MANDIR}/man1
       +        @sed "s/VERSION/${VERSION}/g" < clic.1 > ${DESTDIR}${MANDIR}/man1/clic.1
       +        @chmod 644 ${DESTDIR}${MANDIR}/man1/clic.1
        
        uninstall:
                @echo removing executable file from "${DESTDIR}${PREFIX}/bin"
                @rm -f "${DESTDIR}${BINDIR}/${BIN}"
       +        @echo removing manual page from ${DESTDIR}${MANDIR}/man1
       +        @rm -f ${DESTDIR}${MANDIR}/man1/clic.1
        
        clean:
                rm -f "${BIN}" clic.o clic.eclh clic.cxx bookmark-test extension.so