EXTRA_DIST = html2xml.py

all-am: devhelp

devhelp: gstreamer.devhelp gstreamer-libs.devhelp

gstreamer.devhelp:
	cd ../gst && make
	$(PYTHON) ./html2xml.py ../gst/html
	sed 's@base=""@base="@HTML_DIR@/gstreamer"@g' html.devhelp > gstreamer.devhelp
	perl -i -p -e 's/name="html"/name="gstreamer"/' gstreamer.devhelp
	rm html.devhelp

gstreamer-libs.devhelp:
	cd ../libs && make
	$(PYTHON) ./html2xml.py ../libs/html
	sed 's@base=""@base="@HTML_DIR@/gstreamer-libs"@g' html.devhelp > gstreamer-libs.devhelp
	perl -i -p -e 's/name="html"/name="gstreamer-libs"/' gstreamer-libs.devhelp
	rm html.devhelp
