From 2d8967584306c63f162d8c54ff3456b208dfcb6c Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Thu, 28 Jun 2018 00:37:42 +0200 Subject: Use explicit rules to make test targets. --- tests/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/Makefile b/tests/Makefile index 75aed18..25b1169 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -6,9 +6,13 @@ TEST_PROGS = test-util \ test-shortcut all: $(TEST_PROGS) - LD_LIBRARY_PATH="$(LD_LIBRARY_PATH):." gtester --verbose $(TEST_PROGS) + $(Q)LD_LIBRARY_PATH="$(LD_LIBRARY_PATH):." gtester --verbose $(TEST_PROGS) ${TEST_PROGS}: ../$(SRCDIR)/vimb.so +test-%: test-%.c + @echo "${CC} $@" + $(Q)$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< ../$(SRCDIR)/vimb.so + clean: - $(RM) -f $(TEST_PROGS) + $(RM) $(TEST_PROGS) -- cgit v1.2.3