JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
make config.h not a time dependence
[dwm.git] / Makefile
index 57cacbb..b7db7cc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ 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,8 +23,8 @@ options:
 ${OBJ}: dwm.h config.h
 
 config.h:
-       @echo creating default $@
-       @cp config.default.h $@
+       @echo creating $@ from ${CONFIG}
+       @cp ${CONFIG} $@
 
 dwm: ${OBJ}
        @echo LD $@