X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=Makefile;h=066643e0457460dfc12236fb346a6fb9c9b8f61f;hp=d3fc989a8659ab3b1c647c1f9a614546b1c212c4;hb=b43989207a949cbc17182b451aa527afe542c98f;hpb=82064af2d7076045980c694241cf0326aea7e7e2 diff --git a/Makefile b/Makefile index d3fc989..066643e 100644 --- a/Makefile +++ b/Makefile @@ -7,19 +7,19 @@ SRC = client.c draw.c event.c main.c tag.c util.c OBJ = ${SRC:.c=.o} all: options dwm - @echo finished options: @echo dwm build 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 +27,7 @@ config.h: dwm: ${OBJ} @echo LD $@ - @${CC} -o $@ ${OBJ} ${LDFLAGS} + @${LD} -o $@ ${OBJ} ${LDFLAGS} @strip $@ clean: @@ -50,7 +50,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: