mirror of
https://github.com/forth-ev/VolksForth.git
synced 2024-12-27 22:30:04 +00:00
MSDOS: Switch text file conversion of block source files *.fb from *.fth to *.fb.txt
to differentiate them from genuine stream sources
This commit is contained in:
parent
54a3eafa38
commit
711dd3c739
@ -2,14 +2,23 @@
|
||||
fbfiles = $(wildcard src/*.fb tests/*.fb)
|
||||
fthfiles = $(patsubst %.fb, %.fth, $(fbfiles))
|
||||
|
||||
srcfbfiles = $(wildcard src/*.fb)
|
||||
srcfbtxtfiles = $(patsubst src/%.fb, src/%.fb.txt, $(srcfbfiles))
|
||||
testsfbfiles = $(wildcard tests/*.fb)
|
||||
testsfbtxtfiles = $(patsubst tests/%.fb, tests/%.fb.txt, $(testsfbfiles))
|
||||
fb_txt_files = $(srcfbtxtfiles) $(testsfbtxtfiles)
|
||||
|
||||
test: incltest.result logtest.result test-std.result test-blk.result \
|
||||
incltest-volks4th.result test-volks4th-min.result test-stdi.result
|
||||
|
||||
fth: $(fthfiles)
|
||||
|
||||
fb.txt: $(fb_txt_files)
|
||||
|
||||
clean:
|
||||
rm -f *.log *.LOG *.result *.golden
|
||||
rm -f dosfiles/*
|
||||
rm -f tests/empty.fth tests/empty.fb.txt
|
||||
|
||||
*.log: emulator/run-in-dosbox.sh
|
||||
|
||||
@ -234,6 +243,17 @@ dosfiles/%: tests/% | dosfiles
|
||||
dosfiles:
|
||||
mkdir $@
|
||||
|
||||
$(srcfbtxtfiles): src/%.fb.txt: src/%.fb ../../tools/fb2fth.py
|
||||
../../tools/fb2fth.py $< $@
|
||||
mv $(patsubst %.fb, %.fth, $<) $(patsubst %.fb, %.fth.txt, $<)
|
||||
diff $(patsubst %.fb, %.fth.txt, $<) $(patsubst %.fb, %.fb.txt, $<)
|
||||
|
||||
$(testsfbtxtfiles): tests/%.fb.txt: tests/%.fb ../../tools/fb2fth.py
|
||||
../../tools/fb2fth.py $< $@
|
||||
mv $(patsubst %.fb, %.fth, $<) $(patsubst %.fb, %.fth.txt, $<)
|
||||
diff $(patsubst %.fb, %.fth.txt, $<) $(patsubst %.fb, %.fb.txt, $<)
|
||||
|
||||
|
||||
src/%.fth: src/%.fb ../../tools/fb2fth.py
|
||||
../../tools/fb2fth.py $< $@
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user