makefile: correctly depend on libi3/*.c to recompile libi3 when necessary
This commit is contained in:
parent
886aabe826
commit
14abafb3c8
2
Makefile
2
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"
|
echo "[i3] LINK i3"
|
||||||
$(CC) $(LDFLAGS) -o $@ $(filter-out libi3/libi3.a,$^) $(LIBS)
|
$(CC) $(LDFLAGS) -o $@ $(filter-out libi3/libi3.a,$^) $(LIBS)
|
||||||
|
|
||||||
libi3/%.a:
|
libi3/%.a: libi3/*.c
|
||||||
$(MAKE) -C libi3
|
$(MAKE) -C libi3
|
||||||
|
|
||||||
subdirs:
|
subdirs:
|
||||||
|
|
Loading…
Reference in New Issue