commit 4e84440473323aa72109162123ff062a198a2c44 Author: FRIGN <d...@frign.de> AuthorDate: Tue Jan 5 17:31:43 2016 +0100 Commit: FRIGN <d...@frign.de> CommitDate: Tue Jan 5 17:31:43 2016 +0100
Use consistent {} in Makefile diff --git a/Makefile b/Makefile index 46dcefc..789f817 100644 --- 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