From 94b767679fc68c51aa0c80bdada35b9978989199 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 18 Jul 2025 21:33:50 +0300 Subject: add supertemplate handling --- tests/xok/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/xok/Makefile (limited to 'tests/xok/Makefile') diff --git a/tests/xok/Makefile b/tests/xok/Makefile new file mode 100644 index 0000000..210982c --- /dev/null +++ b/tests/xok/Makefile @@ -0,0 +1,15 @@ +FILES != echo *.c +TARGETS := $(FILES:%.c=build/%) + +all: $(TARGETS) + +build/%: %.c ../../ngc1 + @mkdir -p build + @gcc -E $< -o $@.i + @../../ngc1 $@.i > $@.c + @gcc $@.c -o $@ + @./$@ | (grep -c 'OK' >/dev/null && echo "OK $@" || echo "FAIL $@") + +.PHONY: clean +clean: + $(RM) -rf build -- cgit v1.2.3