aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-12 12:33:55 +0100
committerDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-12 12:33:55 +0100
commit83eee4d23f9da9e72238dd01d43b350ed5bc04f1 (patch)
tree46b92c58b7e37977cd06da09b32dbf626f5b19df /Makefile
parentcd70ca266bb212d6a32d2dd808c7708bb7be6f1f (diff)
downloadunja-83eee4d23f9da9e72238dd01d43b350ed5bc04f1.tar.gz
unja-83eee4d23f9da9e72238dd01d43b350ed5bc04f1.zip
add some more test helpers
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
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