JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
applied Sanders patches
[dwm.git] / Makefile
index 23e5fc7..77f75e6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,6 @@ all: options dwm
 
 options:
        @echo dwm build options:
-       @echo "LIBS     = ${LIBS}"
        @echo "CFLAGS   = ${CFLAGS}"
        @echo "LDFLAGS  = ${LDFLAGS}"
        @echo "CC       = ${CC}"
@@ -29,7 +28,7 @@ dwm: ${OBJ}
        @${CC} -o $@ ${OBJ} ${LDFLAGS}
 
 clean:
-       rm -f dwm *.o core dwm-${VERSION}.tar.gz
+       rm -f dwm *.o dwm-${VERSION}.tar.gz
 
 dist: clean
        mkdir -p dwm-${VERSION}
@@ -41,9 +40,15 @@ dist: clean
 install: all
        @mkdir -p ${DESTDIR}${PREFIX}/bin
        @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
+       @for i in ${BIN}; do \
+               chmod 755 ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
+       done
        @echo installed executable files to ${DESTDIR}${PREFIX}/bin
        @mkdir -p ${DESTDIR}${MANPREFIX}/man1
        @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
+       @for i in ${MAN1}; do \
+               chmod 444 ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
+       done
        @echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
 
 uninstall: