diff --git a/Makefile.in b/Makefile.in index 39cb27b..9a51df2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -134,4 +134,6 @@ Makefile : Makefile.in configure .deps/%.d: %.c | .deps @$(CC) -MM $(CPPFLAGS) -MT '$(<:%.c=%.o) $@' $< -o $@ +ifndef NODEPS -include $(ALL_OBJS:%.o=.deps/%.d) +endif diff --git a/test/unit/Makefile.in b/test/unit/Makefile.in index e789a1b..9979840 100644 --- a/test/unit/Makefile.in +++ b/test/unit/Makefile.in @@ -12,7 +12,8 @@ TEST_OBJS := $(sort $(patsubst %.c,%.o,$(wildcard *.c))) TESTS := $(patsubst %.o,%.test,$(filter-out $(SHARED_OBJS),$(TEST_OBJS))) CHRONYD_OBJS := $(patsubst %.o,$(CHRONY_SRCDIR)/%.o,$(filter-out main.o,\ - $(filter %.o,$(shell $(MAKE) -f $(CHRONY_SRCDIR)/Makefile print-chronyd-objects)))) + $(filter %.o,$(shell $(MAKE) -f $(CHRONY_SRCDIR)/Makefile \ + print-chronyd-objects NODEPS=1)))) all: $(TESTS)