aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-08-03 15:05:34 +0200
committerarg@10ksloc.org <unknown>2006-08-03 15:05:34 +0200
commitbba044de4f055e4a5b6605c221bded849b8bd53e (patch)
treec147eb5354a72dea86e4edd8dbc88b8b61329dd6 /Makefile
parent4d55eee7547ff3b9e0d801c1aa86ba62286f56c4 (diff)
applied Jukka's diff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 57cacbb..5454fbb 100644
--- 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
@@ -21,9 +22,9 @@ options:
${OBJ}: dwm.h config.h
-config.h:
- @echo creating default $@
- @cp config.default.h $@
+config.h: ${CONFIG}
+ @echo creating $@ from $>
+ @cp $> $@
dwm: ${OBJ}
@echo LD $@
@@ -31,7 +32,7 @@ dwm: ${OBJ}
clean:
@echo cleaning
- @rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
+ @rm -f dwm ${OBJ} config.h dwm-${VERSION}.tar.gz
dist: clean
@echo creating dist tarball