X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=Makefile;h=2c015b91c944198da647a99f24b13b50cf4f9750;hb=a686c9ccd293efd543b84c137d91fbeb0f95a621;hp=b7db7cc20e5715d8f8702c8f9f082c88278d260f;hpb=a2d56f6dcef7adb1a85951871cb51a052709241a;p=dwm.git diff --git a/Makefile b/Makefile index b7db7cc..2c015b9 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +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 layout.c main.c tag.c util.c OBJ = ${SRC:.c=.o} -CONFIG ?= config.default.h all: options dwm - @echo finished options: @echo dwm build options: @@ -20,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} - @cp ${CONFIG} $@ + @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 @@ -50,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: