install/uninstall xml2tsv(1) man page - xml2tsv - a simple xml-to-tsv converter, based on xmlparser
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit f7457cb90397ac1c6df8c4bc05ebbf2cf4334a68
 (DIR) parent 60c249ec24ab865c4a55759c7ffde2da99530b1d
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Wed,  6 Jan 2021 11:49:43 +0100
       
       install/uninstall xml2tsv(1) man page
       
       Diffstat:
         M Makefile                            |       9 ++++++++-
         M config.mk                           |       1 +
       
       2 files changed, 9 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/Makefile b/Makefile
       @@ -6,7 +6,8 @@ include config.mk
        SRC = xml.c xml2tsv.c 
        INC = config.h xml.h 
        OBJ = ${SRC:.c=.o}
       -DISTFILES = ${SRC} ${INC} Makefile config.mk 
       +MAN1 = xml2tsv.1
       +DISTFILES = ${SRC} ${INC} Makefile config.mk ${MAN1}
        
        all: options xml2tsv
        
       @@ -35,10 +36,16 @@ install: all
                @mkdir -p "${DESTDIR}${BINDIR}"
                @cp -f xml2tsv "${DESTDIR}${BINDIR}"
                @chmod 755 "${DESTDIR}${BINDIR}/xml2tsv"
       +        @echo installing man page to ${DESTDIR}${MANPREFIX}
       +        @mkdir -p ${DESTDIR}${MANPREFIX}/man1
       +        @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
       +        @for f in ${MAN1}; do chmod 644 ${DESTDIR}${MANPREFIX}/man1/$$f; done
        
        uninstall:
                @echo removing executable file from ${DESTDIR}${BINDIR}
                @rm -f "${DESTDIR}${BINDIR}/xml2tsv"
       +        @echo removing man pages ${DESTDIR}${MANPREFIX}
       +        @for f in ${MAN1}; do rm -f ${DESTDIR}${MANPREFIX}/man1/$$f; done
        
        dist: clean
                @echo "making a tarball"
 (DIR) diff --git a/config.mk b/config.mk
       @@ -1,6 +1,7 @@
        VERSION = 0.1
        PREFIX = /usr/local
        BINDIR = ${PREFIX}/bin
       +MANPREFIX = ${PREFIX}/share/man
        
        CFLAGS = -O3 -std=c99
        LDFLAGS =