]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: improve Makefile
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 13 Sep 2018 14:29:49 +0000 (16:29 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 13 Sep 2018 14:29:49 +0000 (16:29 +0200)
The -s option of make apparently doesn't work when called from make -C.
Add another filter to ignore the Entering/Leaving messages.

Also, fix a typo.

test/unit/Makefile.in

index 333365ac05c66e0cd551ea34d5cfad3fd413161f..72c595eb01ad3c6af8eeb9a901ecaa3d2247041c 100644 (file)
@@ -12,11 +12,11 @@ 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,\
-                 $(shell $(MAKE) -s -C $(CHRONY_SRCDIR) print-chronyd-objects)))
+                 $(filter %.o,$(shell $(MAKE) -s -C $(CHRONY_SRCDIR) print-chronyd-objects))))
 
 all: $(TESTS)
 
-$(CHRONY_OBJS): ;
+$(CHRONYD_OBJS): ;
 
 %.test: %.o $(SHARED_OBJS) $(CHRONYD_OBJS)
        $(CC) $(CFLAGS) -o $@ $(filter-out $(CHRONY_SRCDIR)/$<,$^) $(LDFLAGS)