# Copyright (c) 2014-2015 The Khronos Group Inc.
# Copyright notice at https://www.khronos.org/registry/speccopyright.html

all: html chunks pdf

html:
	asciidoc -b html5 -n -a toc2 -a svgpdf=svg -a docinfo df.txt
	./inlinecss.pl < df.html | ./inlineimages.pl > df_inline.html

chunks:
	cd chunked; a2x --format=chunked -a docinfo -a svgpdf=svg df.txt -L --resource ../images ; cd ..

pdf:
	asciidoc -b docbook -a svgpdf=pdf -a docinfo df.txt && dblatex -b pdftex -s dblatex/df.sty df.xml

clean:
	rm -f df.pdf df.xml df.html df_inline.html
	rm -rf chunked/df.chunked
