# docs/Makefile.am

doc_DATA  = audiowmark.pdf audiowmark.html

GRAPHVIZ_PY = graphviz.py

EXTRA_DIST = audiowmark.md $(GRAPHVIZ_PY) example-spectrum.dat example-spectrum.gp \
	     videowmark-win.cc win-x64-build-guide.txt

audiowmark.pdf: audiowmark.md $(GRAPHVIZ_PY) example-spectrum.png
	pandoc -F $(GRAPHVIZ_PY) -V papersize:a4 -V geometry:margin=2cm $< -o $@

audiowmark.html: audiowmark.md $(GRAPHVIZ_PY) example-spectrum.png
	pandoc -F $(GRAPHVIZ_PY) $< -o $@

example-spectrum.png: example-spectrum.dat example-spectrum.gp
	gnuplot example-spectrum.gp
# DEPS: apt install -y python3-pygraphviz python3-pandocfilters

clean:
	rm -f -r ../docs/graphviz-images/
	rm -f $(doc_DATA)

