mirror of
https://github.com/troglobit/finit.git
synced 2026-11-29 21:08:21 +00:00
Makefile: Declare dependencies better, for parallel builds
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
66f472bb05
commit
02e5c868ba
1 file changed
+5
-6
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user