diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-09-29 13:18:38 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-09-30 19:22:23 +0200 |
commit | 4200d5c107d236dcf71a38fc54887039079a4531 (patch) | |
tree | 45576c71390103a0d6757b7c7067f019053ee348 /Makefile | |
parent | f1e283942d6d407462c188ef11daa5b98faa88e4 (diff) |
Makefile: improve consistency of variable, clarify comment
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -49,7 +49,7 @@ DOC = \ README.xml\ TODO -all: $(BIN) +all: ${BIN} ${BIN}: ${LIB} ${@:=.o} @@ -91,7 +91,7 @@ install: all # installing executable files and scripts. mkdir -p "${DESTDIR}${PREFIX}/bin" cp -f ${BIN} ${SCRIPTS} "${DESTDIR}${PREFIX}/bin" - for f in $(BIN) $(SCRIPTS); do chmod 755 "${DESTDIR}${PREFIX}/bin/$$f"; done + for f in ${BIN} ${SCRIPTS}; do chmod 755 "${DESTDIR}${PREFIX}/bin/$$f"; done # installing example files. mkdir -p "${DESTDIR}${PREFIX}/share/${NAME}" cp -f sfeedrc.example\ @@ -99,18 +99,18 @@ install: all README\ README.xml\ "${DESTDIR}${PREFIX}/share/${NAME}" - # installing manual pages for tools. + # installing manual pages for general commands: section 1. mkdir -p "${DESTDIR}${MANPREFIX}/man1" cp -f ${MAN1} "${DESTDIR}${MANPREFIX}/man1" - for m in $(MAN1); do chmod 644 "${DESTDIR}${MANPREFIX}/man1/$$m"; done - # installing manual pages for sfeedrc(5). + for m in ${MAN1}; do chmod 644 "${DESTDIR}${MANPREFIX}/man1/$$m"; done + # installing manual pages for file formats: section 5. mkdir -p "${DESTDIR}${MANPREFIX}/man5" cp -f ${MAN5} "${DESTDIR}${MANPREFIX}/man5" - for m in $(MAN5); do chmod 644 "${DESTDIR}${MANPREFIX}/man5/$$m"; done + for m in ${MAN5}; do chmod 644 "${DESTDIR}${MANPREFIX}/man5/$$m"; done uninstall: # removing executable files and scripts. - for f in $(BIN) $(SCRIPTS); do rm -f "${DESTDIR}${PREFIX}/bin/$$f"; done + for f in ${BIN} ${SCRIPTS}; do rm -f "${DESTDIR}${PREFIX}/bin/$$f"; done # removing example files. rm -f \ "${DESTDIR}${PREFIX}/share/${NAME}/sfeedrc.example"\ @@ -119,7 +119,7 @@ uninstall: "${DESTDIR}${PREFIX}/share/${NAME}/README.xml" -rmdir "${DESTDIR}${PREFIX}/share/${NAME}" # removing manual pages. - for m in $(MAN1); do rm -f "${DESTDIR}${MANPREFIX}/man1/$$m"; done - for m in $(MAN5); do rm -f "${DESTDIR}${MANPREFIX}/man5/$$m"; done + for m in ${MAN1}; do rm -f "${DESTDIR}${MANPREFIX}/man1/$$m"; done + for m in ${MAN5}; do rm -f "${DESTDIR}${MANPREFIX}/man5/$$m"; done .PHONY: all clean dist install uninstall |