]> sjero.net Git - linphone/blob - coreapi/help/Makefile.am
purge out p2pproxy
[linphone] / coreapi / help / Makefile.am
1
2 EXTRA_DIST = Doxyfile.in doxygen.dox.in
3
4 SOURCES=$(top_srcdir)/coreapi/*.h $(top_srcdir)/coreapi/*.c
5
6
7 #html doc
8 if HAVE_DOXYGEN
9
10 # doxdir & pkgdocdir are not always defined by automake
11 docdir=$(datadir)/doc
12 pkgdocdir=$(docdir)/$(PACKAGE)-$(VERSION)
13 doc_htmldir=$(pkgdocdir)/html
14
15 doc_html_DATA = $(top_builddir)/coreapi/help/doc/html/html.tar
16
17 $(doc_html_DATA): $(top_builddir)/coreapi/help/doc/html/index.html
18         cd $(<D) && tar cf html.tar *
19
20 $(top_builddir)/coreapi/help/doc/html/index.html: $(SOURCES) Doxyfile Makefile.am
21         rm -rf doc
22         $(DOXYGEN) Doxyfile
23
24 install-data-hook:
25         cd $(DESTDIR)$(doc_htmldir) && tar xf html.tar && rm -f html.tar
26
27 uninstall-hook:
28         cd $(DESTDIR)$(doc_htmldir) && rm -f *
29
30 endif
31
32 clean-local:
33         rm -rf doc