JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
applied Sanders man page/Makefile patch
[dwm.git] / Makefile
index 57cacbb..aebd21b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,12 +22,13 @@ options:
 ${OBJ}: dwm.h config.h
 
 config.h:
-       @echo creating default $@
+       @echo creating $@ from config.default.h
        @cp config.default.h $@
 
 dwm: ${OBJ}
        @echo LD $@
        @${CC} -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: