1
0
forked from GitHub/gf-rgl
Files
gf-rgl/doc/gfdoc/Makefile
John J. Camilleri 20efc48e21 Fix making of "sources.html"
Uses same template as synopsis, maybe this shoudl be generalised a bit
2018-11-13 09:50:10 +01:00

18 lines
482 B
Makefile

TMP=tmp.html
TEMPLATE=../synopsis/template.html
ROOT=../..
sources.html: sources.txt $(TEMPLATE)
txt2tags --target=html --no-headers --quiet --toc --outfile=$@ --infile=$<
pandoc \
--from=html \
--to=html5 \
--standalone \
--template=$(TEMPLATE) \
--metadata='title:"More modules in the GF Resource Grammar Library"' \
--variable='rel-root:$(ROOT)/..' \
--output=$(TMP) \
$@
mv $(TMP) $@
sed -i.bak "s/<table>/<table class=\"table w-auto\">/" $@ && rm "$@.bak"