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

2 3 4 5
DOXFILES = doxygen.dox filters.dox ht0-buildagraph.dox

EXTRA_DIST = Doxyfile.in $(DOXFILES)

Ghislain MARY's avatar
Ghislain MARY committed
6
SOURCES=$(DOXFILES) $(top_srcdir)/include/mediastreamer2/*.h $(top_srcdir)/src/*.h
aymeric's avatar
aymeric committed
7

smorlat's avatar
smorlat committed
8 9 10
#html doc
if HAVE_DOXYGEN

Yann Diorcet's avatar
Yann Diorcet committed
11
# docdir & pkgdocdir are not always defined by automake
smorlat's avatar
smorlat committed
12 13 14 15 16 17
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
Yann Diorcet's avatar
Yann Diorcet committed
18
	cd $(top_builddir)/help/doc/html/ && tar cf html.tar *
smorlat's avatar
smorlat committed
19 20 21 22 23 24 25 26 27

$(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
28
	cd $(DESTDIR)$(doc_htmldir) && rm -f *
smorlat's avatar
smorlat committed
29 30 31

endif

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