2022-01-06 13:55:53 +00:00
|
|
|
|
|
|
|
test: logtest.result
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.log *.LOG *.result *.golden
|
|
|
|
|
2022-01-10 21:56:19 +00:00
|
|
|
v4thfile.com: volks4th.com src/V4THFILE.FB \
|
|
|
|
emulator/run-in-dosbox.sh
|
|
|
|
rm -f V4THFILE.COM v4thfile.com
|
2022-01-11 22:40:24 +00:00
|
|
|
./emulator/run-in-dosbox.sh volks4th.com v4thfile.fb
|
2022-01-10 21:56:19 +00:00
|
|
|
mv V4THFILE.COM v4thfile.com
|
2022-01-06 13:55:53 +00:00
|
|
|
|
2022-01-11 22:40:24 +00:00
|
|
|
incltest.log: v4thfile.com tests/LOG2FILE.FB tests/incltest.fth \
|
|
|
|
emulator/run-in-dosbox.sh
|
|
|
|
./emulator/run-in-dosbox.sh v4thfile.com incltest.fth
|
|
|
|
|
|
|
|
incltest.golden: tests/golden/incltest.golden
|
|
|
|
cp -p $< $@
|
|
|
|
|
2022-01-10 21:42:25 +00:00
|
|
|
logtest.log: volks4th.com tests/LOG2FILE.FB tests/LOGTEST.FB \
|
|
|
|
emulator/run-in-dosbox.sh
|
2022-01-11 22:40:24 +00:00
|
|
|
./emulator/run-in-dosbox.sh volks4th.com logtest.fb
|
2022-01-06 13:55:53 +00:00
|
|
|
|
|
|
|
logtest.golden: tests/golden/logtest.golden
|
|
|
|
cp -p $< $@
|
|
|
|
|
|
|
|
%.result: %.log %.golden tests/evaluate-test.sh
|
|
|
|
rm -f $@
|
|
|
|
tests/evaluate-test.sh $(basename $@)
|
|
|
|
|
2022-01-11 22:40:24 +00:00
|
|
|
src/%.fth: src/%.fb ../../tools/fb2fth.py
|
|
|
|
../../tools/fb2fth.py $< $@
|
|
|
|
|
|
|
|
tests/%.fth: tests/%.fb ../../tools/fb2fth.py
|
|
|
|
../../tools/fb2fth.py $< $@
|
|
|
|
|
2022-01-10 21:42:25 +00:00
|
|
|
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
|