X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=Makefile;h=a0bfc0c45668481aa62b5a757782f477fb32cbae;hb=95766d6241a401b3665ac1ad528b90c55e7b6810;hp=342a9c26850c7d48cc6af01d36de6d6e77938596;hpb=99b126d0afe461960d001385c9ee13295c8ed543;p=dwm.git diff --git a/Makefile b/Makefile index 342a9c2..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,8 @@ config.h: dwm: ${OBJ} @echo LD $@ - @${CC} -o $@ ${OBJ} ${LDFLAGS} + @${LD} -o $@ ${OBJ} ${LDFLAGS} + @strip $@ clean: @echo cleaning @@ -49,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: