]> git.armaanb.net Git - dwm.git/commitdiff
implemented the idea presented by Sander for dwm target
authorarg@10ksloc.org <unknown>
Wed, 2 Aug 2006 15:49:21 +0000 (17:49 +0200)
committerarg@10ksloc.org <unknown>
Wed, 2 Aug 2006 15:49:21 +0000 (17:49 +0200)
Makefile
README

index 77f75e6926d0329ccaaaafe715904bcedcd9898a..817c2e1f5654a8f7758bdef14dbc3dd9e8e4d6db 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,10 @@ options:
        @echo CC $<
        @${CC} -c ${CFLAGS} $<
 
-${OBJ}: dwm.h
+${OBJ}: dwm.h config.h
+
+config.h:
+       cp config.default.h config.h
 
 dwm: ${OBJ}
        @echo LD $@
diff --git a/README b/README
index 07bbd086d97076b1a27f09e71fca6c935c268968..5d40d95f0c336824434daf39149740f3ceff1740 100644 (file)
--- a/README
+++ b/README
@@ -13,10 +13,9 @@ Installation
 Edit config.mk to match your local setup (dwm is installed into
 the /usr/local namespace by default).
 
-Afterwards enter the following commands to build and install dwm (if
+Afterwards enter the following command to build and install dwm (if
 necessary as root):
 
-    cp config.default.h config.h
     make clean install