gstreamer/docs/devhelp/Makefile.am

25 lines
895 B
Makefile
Raw Normal View History

EXTRA_DIST = html2xml.py
CLEANFILES = *.devhelp
devhelp_files = \
gstreamer-@GST_MAJORMINOR@.devhelp \
gstreamer-libs-@GST_MAJORMINOR@.devhelp
all-am: $(devhelp_files)
devhelp:
cd ../gst && make
$(PYTHON) ./html2xml.py ../gst/html
sed 's@base=""@base="@HTML_DIR@/gstreamer-@GST_MAJORMINOR@"@g' html.devhelp > gstreamer-@GST_MAJORMINOR@.devhelp && \
perl -i -p -e 's/name="html"/name="gstreamer-@GST_MAJORMINOR@"/' gstreamer-@GST_MAJORMINOR@.devhelp && \
rm html.devhelp
cd ../libs && make
$(PYTHON) ./html2xml.py ../libs/html
sed 's@base=""@base="@HTML_DIR@/gstreamer-libs-@GST_MAJORMINOR@"@g' html.devhelp > gstreamer-libs-@GST_MAJORMINOR@.devhelp && \
perl -i -p -e 's/name="html"/name="gstreamer-libs-@GST_MAJORMINOR@"/' gstreamer-libs-@GST_MAJORMINOR@.devhelp && \
rm html.devhelp
gstreamer-@GST_MAJORMINOR@.devhelp: devhelp
gstreamer-libs-@GST_MAJORMINOR@.devhelp: devhelp