]> git.sur5r.net Git - i3/i3status/commitdiff
makefile: fix linking 1.1
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 17 Jun 2009 20:13:48 +0000 (22:13 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 17 Jun 2009 20:13:48 +0000 (22:13 +0200)
Makefile

index 9c474c4a455fc062a5192890328c4afe239a9d86..92e9cbaad921b0387547150440db5a597124e94a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,8 @@ endif
 #CFLAGS+=-DDZEN
 CFLAGS+=$(EXTRA_CFLAGS)
 
-i3status.o: i3status.h
+%.o: %.c %.h
+       $(CC) $(CFLAGS) -c -o $@ $<
 
 i3status: i3status.o