diff options
author | Daniel Carl <danielcarl@gmx.de> | 2018-06-28 00:37:42 +0200 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2018-06-28 00:41:38 +0200 |
commit | 2d8967584306c63f162d8c54ff3456b208dfcb6c (patch) | |
tree | 3059b06de7126798df33df89dcf2e7c7d1d7ef33 /tests | |
parent | 8b7657fdac0c1f304a55d4bf5ddb4acdb5eaa35c (diff) |
Use explicit rules to make test targets.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
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) |