X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=Makefile;h=066643e0457460dfc12236fb346a6fb9c9b8f61f;hp=57cacbb43f9210278bb96d2e67f273104d36efd0;hb=b43989207a949cbc17182b451aa527afe542c98f;hpb=4d55eee7547ff3b9e0d801c1aa86ba62286f56c4 diff --git a/Makefile b/Makefile index 57cacbb..066643e 100644 --- a/Makefile +++ b/Makefile @@ -7,27 +7,28 @@ 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 default $@ + @echo creating $@ from config.default.h @cp config.default.h $@ dwm: ${OBJ} @echo LD $@ - @${CC} -o $@ ${OBJ} ${LDFLAGS} + @${LD} -o $@ ${OBJ} ${LDFLAGS} + @strip $@ clean: @echo cleaning @@ -49,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: