X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=a0bfc0c45668481aa62b5a757782f477fb32cbae;hb=2c0d1cc87bf084ed3f1cdb4be881fb4f64f5773a;hp=d3fc989a8659ab3b1c647c1f9a614546b1c212c4;hpb=82064af2d7076045980c694241cf0326aea7e7e2;p=dwm.git diff --git a/Makefile b/Makefile index d3fc989..a0bfc0c 100644 --- a/Makefile +++ b/Makefile @@ -14,12 +14,13 @@ options: @echo "CFLAGS = ${CFLAGS}" @echo "LDFLAGS = ${LDFLAGS}" @echo "CC = ${CC}" + @echo "LD = ${LD}" .c.o: @echo CC $< @${CC} -c ${CFLAGS} $< -${OBJ}: dwm.h config.h +${OBJ}: dwm.h config.h config.mk config.h: @echo creating $@ from config.default.h @@ -27,7 +28,7 @@ config.h: dwm: ${OBJ} @echo LD $@ - @${CC} -o $@ ${OBJ} ${LDFLAGS} + @${LD} -o $@ ${OBJ} ${LDFLAGS} @strip $@ clean: @@ -50,7 +51,7 @@ install: all @chmod 755 ${DESTDIR}${PREFIX}/bin/dwm @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 @mkdir -p ${DESTDIR}${MANPREFIX}/man1 - @cp -f dwm.1 ${DESTDIR}${MANPREFIX}/man1 + @sed 's/VERSION/${VERSION}/g' < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1 uninstall: