Makefile.am 743 Bytes
Newer Older
aymeric's avatar
aymeric committed
1

smorlat's avatar
smorlat committed
2
EXTRA_DIST = Doxyfile.in doxygen.dox.in
aymeric's avatar
aymeric committed
3

smorlat's avatar
smorlat committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#html doc
if HAVE_DOXYGEN

SOURCES=$(top_srcdir)/include/mediastreamer2/*.h $(top_srcdir)/src/*.c $(top_srcdir)/src/*.h

# doxdir & pkgdocdir are not always defined by automake
docdir=$(datadir)/doc
pkgdocdir=$(docdir)/$(PACKAGE)-$(VERSION)
doc_htmldir=$(pkgdocdir)/html

doc_html_DATA = $(top_builddir)/help/doc/html/html.tar

$(doc_html_DATA): $(top_builddir)/help/doc/html/index.html
	cd $(<D) && tar cf html.tar *

$(top_builddir)/help/doc/html/index.html: $(SOURCES) Doxyfile Makefile.am
	rm -rf doc
	$(DOXYGEN) Doxyfile

install-data-hook:
	cd $(DESTDIR)$(doc_htmldir) && tar xf html.tar && rm -f html.tar

uninstall-hook:
smorlat's avatar
smorlat committed
27
	cd $(DESTDIR)$(doc_htmldir) && rm -f *
smorlat's avatar
smorlat committed
28 29 30

endif

smorlat's avatar
smorlat committed
31 32
clean-local:
	rm -rf doc