From 83eee4d23f9da9e72238dd01d43b350ed5bc04f1 Mon Sep 17 00:00:00 2001 From: Danny van Kooten Date: Thu, 12 Mar 2020 12:33:55 +0100 Subject: add some more test helpers --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5425eb2..a362f52 100644 --- a/Makefile +++ b/Makefile @@ -6,14 +6,17 @@ all: bin/hyde bin:; mkdir -p bin/ -bin/hyde: src/hyde.c src/hashmap.c vendor/mpc.c | bin +bin/hyde: src/hyde.c src/hashmap.c src/template.c vendor/mpc.c | bin $(CC) $(CFLAGS) $^ -o $@ bin/test_hashmap: src/hashmap.c tests/test_hashmap.c | bin $(CC) $(TESTFLAGS) $^ -o $@ +bin/test_template: src/template.c src/hashmap.c tests/test_template.c vendor/mpc.c | bin + $(CC) $(TESTFLAGS) $^ -o $@ + .PHONY: check -check: bin/test_hashmap +check: bin/test_hashmap bin/test_template for test in $^; do $$test || exit 1; done .PHONY: clean -- cgit v1.2.3