test: fix Makefile to not create .deps in project root

This commit is contained in:
Miroslav Lichvar 2018-09-19 16:33:55 +02:00
parent 65bb65b440
commit 91f3f97ea7

View file

@ -12,7 +12,7 @@ TEST_OBJS := $(sort $(patsubst %.c,%.o,$(wildcard *.c)))
TESTS := $(patsubst %.o,%.test,$(filter-out $(SHARED_OBJS),$(TEST_OBJS))) TESTS := $(patsubst %.o,%.test,$(filter-out $(SHARED_OBJS),$(TEST_OBJS)))
CHRONYD_OBJS := $(patsubst %.o,$(CHRONY_SRCDIR)/%.o,$(filter-out main.o,\ CHRONYD_OBJS := $(patsubst %.o,$(CHRONY_SRCDIR)/%.o,$(filter-out main.o,\
$(filter %.o,$(shell $(MAKE) -s -C $(CHRONY_SRCDIR) print-chronyd-objects)))) $(filter %.o,$(shell $(MAKE) -f $(CHRONY_SRCDIR)/Makefile print-chronyd-objects))))
all: $(TESTS) all: $(TESTS)