Makefile: improvements - json2tsv - JSON to TSV converter (HTM) git clone git://git.codemadness.org/json2tsv (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit df5cda00ba8ef98787d15a666cd06b1fcb336b4c (DIR) parent 29d08288c8e16e76e408f2cab0729d7136b493fb (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 10 Jun 2020 14:38:45 +0200 Makefile: improvements Pointed out by quinq, thanks * Use ar -rc (not ar rc) as defined in POSIX. * Install license as documentation too. Diffstat: M Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- (DIR) diff --git a/Makefile b/Makefile @@ -39,7 +39,7 @@ ${OBJ}: ${HDR} ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ -c $< ${LIBJSON}: ${LIBJSONOBJ} - ${AR} rc $@ $? + ${AR} -rc $@ $? ${RANLIB} $@ dist: @@ -61,7 +61,7 @@ install: all for f in ${BIN}; do chmod 755 "${DESTDIR}${PREFIX}/bin/$$f"; done # installing example files. mkdir -p "${DESTDIR}${DOCPREFIX}" - cp -f README "${DESTDIR}${DOCPREFIX}" + cp -f ${DOC} "${DESTDIR}${DOCPREFIX}" # installing manual pages for general commands: section 1. mkdir -p "${DESTDIR}${MANPREFIX}/man1" cp -f ${MAN1} "${DESTDIR}${MANPREFIX}/man1"