JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
applied Sanders tiny patches
[dwm.git] / Makefile
index aebd21b..9ef219a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ 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
@@ -50,7 +50,7 @@ install: all
        @chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
        @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
        @mkdir -p ${DESTDIR}${MANPREFIX}/man1
-       @sed 's/VERSION/${VERSION}/g' < dwm.1 ${DESTDIR}${MANPREFIX}/man1/dwm.1
+       @sed 's/VERSION/${VERSION}/g' < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
        @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
 
 uninstall: