]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: make i3bar depend on libi3
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 9 Oct 2011 12:05:29 +0000 (13:05 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 9 Oct 2011 12:05:29 +0000 (13:05 +0100)
i3bar/Makefile

index 643065dfd76c09ffa6b666a3c9144593847c53c7..a0c472bf49195afb7406ac82efd5070eecafbccd 100644 (file)
@@ -10,9 +10,12 @@ CPPFLAGS += -I$(TOPDIR)/include
 
 all: i3bar doc
 
-i3bar: ${FILES}
+i3bar: libi3/libi3.a ${FILES}
        echo "LINK"
-       $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
+       $(CC) $(LDFLAGS) -o $@ $(filter-out libi3/libi3.a,$^) $(LIBS)
+
+libi3/%.a:
+       $(MAKE) -C $(TOPDIR)/libi3
 
 doc:
        echo ""