JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added stripping to dwm target in Makefile
[dwm.git] / Makefile
index 6eb05b6..d3fc989 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,6 @@ include config.mk
 
 SRC = client.c draw.c event.c main.c tag.c util.c
 OBJ = ${SRC:.c=.o}
-CONFIG ?= config.default.h
 
 all: options dwm
        @echo finished
@@ -22,17 +21,18 @@ options:
 
 ${OBJ}: dwm.h config.h
 
-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 $@
        @${CC} -o $@ ${OBJ} ${LDFLAGS}
+       @strip $@
 
 clean:
        @echo cleaning
-       @rm -f dwm ${OBJ} config.h dwm-${VERSION}.tar.gz
+       @rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
 
 dist: clean
        @echo creating dist tarball