mirror of
https://github.com/forth-ev/VolksForth.git
synced 2024-11-22 20:34:07 +00:00
e089121f22
into lowercase xyz.fth stream files, and convert files in src/ and tests/
34 lines
707 B
Makefile
34 lines
707 B
Makefile
|
|
test: logtest.result
|
|
|
|
clean:
|
|
rm -f *.log *.LOG *.result *.golden
|
|
|
|
|
|
logtest.log: volks4th.com tests/LOG2FILE.FB tests/LOGTEST.FB \
|
|
emulator/run-in-dosbox.sh
|
|
./emulator/run-in-dosbox.sh volks4th.com logtest
|
|
|
|
logtest.golden: tests/golden/logtest.golden
|
|
cp -p $< $@
|
|
|
|
%.result: %.log %.golden tests/evaluate-test.sh
|
|
rm -f $@
|
|
tests/evaluate-test.sh $(basename $@)
|
|
|
|
fbfiles = $(wildcard src/*.FB tests/*.FB)
|
|
fthfiles = $(patsubst %.fb, %.fth, \
|
|
$(shell ../../tools/echo-tolower.py $(fbfiles)))
|
|
|
|
fth: $(fthfiles)
|
|
|
|
.ONESHELL:
|
|
$(fthfiles): $(fbfiles)
|
|
set -x
|
|
for fb in $^
|
|
do
|
|
echo fb: $$fb
|
|
fth=$$(../../tools/echo-tolower.py $$fb | sed -e 's/fb$$/fth/')
|
|
../../tools/fb2fth.py $$fb $$fth
|
|
done
|