X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/db876f9fb00cd7d0347592fab0974389f7180a67..6ba400ee0fa55d1178cac5f38f4465a1ddf30490:/Makefile

diff --git a/Makefile b/Makefile
index 4df8e9a..e337ec2 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 main.c tag.c util.c view.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: ${CONFIG}
-	@echo creating $@ from ${CONFIG}
-	@cp ${CONFIG} $@
+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
@@ -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: