aboutsummaryrefslogtreecommitdiff
path: root/test/bin/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-02-03 18:46:44 +0100
committerlonkaars <loek@pipeframe.xyz>2023-02-03 18:46:44 +0100
commitdb30b8eacce34d6fc901f50982acade589eecd04 (patch)
treec4d98aa0d801cc0dc50c5b2d05febcad626cf17a /test/bin/makefile
parent8fb34ff745bac3be2cc6a4d62069e7117eb78ee6 (diff)
add makefile for bin tests
Diffstat (limited to 'test/bin/makefile')
-rw-r--r--test/bin/makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/bin/makefile b/test/bin/makefile
new file mode 100644
index 0000000..736f51b
--- /dev/null
+++ b/test/bin/makefile
@@ -0,0 +1,13 @@
+SRCS := $(wildcard *.bs)
+TARGETS := $(patsubst %.bs,%.bin, $(SRCS))
+
+.PHONY: all clean
+
+all: $(TARGETS)
+
+%.bin: %.bs
+ m4 bs.m4 < $< | xxd -r -p > $@
+
+clean:
+ $(RM) $(TARGETS)
+