File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -514,9 +514,9 @@ test-clean:
514514test-distclean :
515515 make -C testsuite distclean
516516
517- # Copy manual to compiler
518- build/compiler/MANUAL.md : manual.md
519- cp -f $< $@
517+ # Copy manual to compiler changing the version string.
518+ build/compiler/MANUAL.md : manual.md version.mk
519+ LC_ALL=C sed ' s/%VERSION%/$(VERSION)/ ' < $< > $@
520520
521521# Copy other files to compiler folder
522522build/compiler/% : compiler/%
Original file line number Diff line number Diff line change @@ -85,10 +85,12 @@ compile_win32
8585compile_osx
8686
8787# Makes PDF using "pandoc"
88- pandoc manual.md -o " ${out} -manual.pdf" \
88+ make build/compiler/MANUAL.md
89+ pandoc build/compiler/MANUAL.md -o " ${out} -manual.pdf" \
8990 --from markdown-raw_tex --template template.tex \
9091 --listings --toc --number-sections
9192
92- pandoc compiler/USAGE.md -o " ${out} -cross-compiler.pdf" \
93+ make build/compiler/USAGE.md
94+ pandoc build/compiler/USAGE.md -o " ${out} -cross-compiler.pdf" \
9395 --from markdown-raw_tex --template ~ /eisvogel.tex --listings
9496
Original file line number Diff line number Diff line change 1- % FastBasic - Fast BASIC interpreter for the Atari 8-bit computers
1+ % FastBasic %VERSION% - Fast BASIC interpreter for the Atari 8-bit computers
22
33Introduction
44============
You can’t perform that action at this time.
0 commit comments