dwm-meillo
diff Makefile @ 181:03cb4cc41818
applied Jukka's diff
author | arg@10ksloc.org |
---|---|
date | Thu, 03 Aug 2006 15:05:34 +0200 |
parents | 6d2bc1d3a00d |
children | ca8d8b7bd16f |
line diff
1.1 --- a/Makefile Thu Aug 03 13:50:37 2006 +0200 1.2 +++ b/Makefile Thu Aug 03 15:05:34 2006 +0200 1.3 @@ -5,6 +5,7 @@ 1.4 1.5 SRC = client.c draw.c event.c main.c tag.c util.c 1.6 OBJ = ${SRC:.c=.o} 1.7 +CONFIG ?= config.default.h 1.8 1.9 all: options dwm 1.10 @echo finished 1.11 @@ -21,9 +22,9 @@ 1.12 1.13 ${OBJ}: dwm.h config.h 1.14 1.15 -config.h: 1.16 - @echo creating default $@ 1.17 - @cp config.default.h $@ 1.18 +config.h: ${CONFIG} 1.19 + @echo creating $@ from $> 1.20 + @cp $> $@ 1.21 1.22 dwm: ${OBJ} 1.23 @echo LD $@ 1.24 @@ -31,7 +32,7 @@ 1.25 1.26 clean: 1.27 @echo cleaning 1.28 - @rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz 1.29 + @rm -f dwm ${OBJ} config.h dwm-${VERSION}.tar.gz 1.30 1.31 dist: clean 1.32 @echo creating dist tarball