X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=Makefile;h=18626a74f185762fd2e37110f855398f865d5a87;hp=57cacbb43f9210278bb96d2e67f273104d36efd0;hb=5cc27f1b3c61df4f048cdac9e0feb31a2dd80c63;hpb=4d55eee7547ff3b9e0d801c1aa86ba62286f56c4 diff --git a/Makefile b/Makefile index 57cacbb..18626a7 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,12 @@ # dwm - dynamic window manager -# (C)opyright MMVI Anselm R. Garbe +# (C)opyright MMVI-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 tile.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 default $@ + @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: