commit 4e84440473323aa72109162123ff062a198a2c44 parent 37279aea00503196cfb5e008b66ced8ec8043e1f Author: FRIGN <dev@frign.de> Date: Tue, 5 Jan 2016 17:31:43 +0100 Use consistent {} in Makefile Diffstat:
M | Makefile | | | 22 | ++++++++++------------ |
1 file changed, 10 insertions(+), 12 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,11 +1,9 @@ -# farbfeld - tools to convert between png/jpg and ff # See LICENSE file for copyright and license details - include config.mk BIN = png2ff ff2png jpg2ff -SRC = $(BIN:=.c) -MAN1 = 2ff.1 $(BIN:=.1) +SRC = ${BIN:=.c} +MAN1 = 2ff.1 ${BIN:=.1} MAN5 = farbfeld.5 all: png2ff ff2png jpg2ff @@ -22,18 +20,18 @@ install: all @mkdir -p "${DESTDIR}${PREFIX}/bin" @cp -f 2ff ${BIN} "${DESTDIR}${PREFIX}/bin" @echo installing manpages into ${DESTDIR}${MANPREFIX} - @mkdir -p "$(DESTDIR)$(MANPREFIX)/man1" - @cp -f $(MAN1) "$(DESTDIR)$(MANPREFIX)/man1" - @cd "$(DESTDIR)$(MANPREFIX)/man1" && chmod 644 $(MAN1) - @mkdir -p "$(DESTDIR)$(MANPREFIX)/man5" - @cp -f $(MAN5) "$(DESTDIR)$(MANPREFIX)/man5" - @cd "$(DESTDIR)$(MANPREFIX)/man5" && chmod 644 $(MAN5) + @mkdir -p "${DESTDIR}${MANPREFIX}/man1" + @cp -f ${MAN1} "${DESTDIR}${MANPREFIX}/man1" + @cd "${DESTDIR}${MANPREFIX}/man1" && chmod 644 ${MAN1} + @mkdir -p "${DESTDIR}${MANPREFIX}/man5" + @cp -f ${MAN5} "${DESTDIR}${MANPREFIX}/man5" + @cd "${DESTDIR}${MANPREFIX}/man5" && chmod 644 ${MAN5} uninstall: @echo removing from ${DESTDIR}${PREFIX}/bin @cd "${DESTDIR}${PREFIX}/bin" && rm -f 2ff ${BIN} @echo removing manpages from ${DESTDIR}${MANPREFIX} - @cd "${DESTDIR}${MANPREFIX}/man1" && rm -f $(MAN1) - @cd "${DESTDIR}${MANPREFIX}/man5" && rm -f $(MAN5) + @cd "${DESTDIR}${MANPREFIX}/man1" && rm -f ${MAN1} + @cd "${DESTDIR}${MANPREFIX}/man5" && rm -f ${MAN5} .PHONY: all clean install uninstall