jotdown/tests/suite/Makefile

23 lines
315 B
Makefile
Raw Normal View History

2022-11-12 12:46:13 -05:00
.POSIX:
.SUFFIXES: .test .rs
TEST=$(shell find . -name '*.test' | sort)
TEST_RS=${TEST:.test=.rs}
.PHONY: suite
suite: mod.rs
mod.rs: ${TEST_RS}
printf "" > $@
for f in ${TEST}; do \
name=$$(basename -s .test $$f); \
echo "mod $$name;" >> $@; \
done
.test.rs:
awk -fgen.awk $< > $@
clean:
rm -f *.rs