Makefile: Declare dependencies better, for parallel builds

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-06-17 14:07:30 +02:00
1 parent 66f472bb05
commit 02e5c868ba
1 file changed
+5 -6
+5 -6
View File
@@ -59,22 +59,21 @@ LDLIBS += -lite -luev
include common.mk include common.mk
all: config.h $(DEPLIBS) $(EXEC) all: config.h $(EXEC)
+$(MAKE) -C plugins $@ +$(MAKE) -C plugins $@
$(DEPLIBS): Makefile $(DEPLIBS): Makefile
+$(MAKE) -C libite all +$(MAKE) -C `dirname $@` all
+$(MAKE) -C libuev all
$(OBJS): Makefile $(DEPLIBS) $(OBJS): Makefile
config.h: configure config.h: configure
@echo "Please run configure script first." @echo "Please run configure script first."
@exit 1 @exit 1
finit: $(OBJS) finit: $(OBJS) $(DEPLIBS)
initctl: initctl.o svc.o helpers.o initctl: initctl.o svc.o helpers.o $(DEPLIBS)
reboot: reboot.o $(DEPLIBS) reboot: reboot.o $(DEPLIBS)