]> git.sur5r.net Git - i3/i3/commitdiff
makefile: correctly depend on libi3/*.c to recompile libi3 when necessary
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 23 Oct 2011 12:16:39 +0000 (13:16 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 23 Oct 2011 12:16:39 +0000 (13:16 +0100)
Makefile

index 5e82ebc30a7131c04d724ec27343e0674cfd67ef..c0797839c97e9ffe5cd61ad98908b0caac8f0447 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ i3: libi3/libi3.a src/cfgparse.y.o src/cfgparse.yy.o src/cmdparse.y.o src/cmdpar
        echo "[i3] LINK i3"
        $(CC) $(LDFLAGS) -o $@ $(filter-out libi3/libi3.a,$^) $(LIBS)
 
-libi3/%.a:
+libi3/%.a: libi3/*.c
        $(MAKE) -C libi3
 
 subdirs: