mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 07:45:06 -05:00
test: improve Makefile
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user