mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
Makefile: Declare dependencies better, for parallel builds
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -59,22 +59,21 @@ LDLIBS += -lite -luev
|
||||
include common.mk
|
||||
|
||||
|
||||
all: config.h $(DEPLIBS) $(EXEC)
|
||||
all: config.h $(EXEC)
|
||||
+$(MAKE) -C plugins $@
|
||||
|
||||
$(DEPLIBS): Makefile
|
||||
+$(MAKE) -C libite all
|
||||
+$(MAKE) -C libuev all
|
||||
+$(MAKE) -C `dirname $@` all
|
||||
|
||||
$(OBJS): Makefile $(DEPLIBS)
|
||||
$(OBJS): Makefile
|
||||
|
||||
config.h: configure
|
||||
@echo "Please run configure script first."
|
||||
@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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user