X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=Makefile;h=dd1a770b93e61b7237611ee11782fd5fab40b85f;hb=3d48f330255eec6a404586f3cfe0e78d6d80e951;hp=342a9c26850c7d48cc6af01d36de6d6e77938596;hpb=99b126d0afe461960d001385c9ee13295c8ed543;p=dwm.git diff --git a/Makefile b/Makefile index 342a9c2..dd1a770 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,12 @@ # dwm - dynamic window manager -# (C)opyright MMVI Anselm R. Garbe +# (C)opyright MMVII Anselm R. Garbe include config.mk -SRC = client.c draw.c event.c main.c tag.c util.c +SRC = client.c draw.c event.c main.c tag.c util.c view.c OBJ = ${SRC:.c=.o} all: options dwm - @echo finished options: @echo dwm build options: @@ -19,15 +18,16 @@ options: @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 @cp config.default.h $@ dwm: ${OBJ} - @echo LD $@ + @echo CC -o $@ @${CC} -o $@ ${OBJ} ${LDFLAGS} + @strip $@ clean: @echo cleaning @@ -49,7 +49,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: