XML output
[profile/ivi/eina.git] / doc / Makefile.am
1 MAINTAINERCLEANFILES = Makefile.in
2
3 .PHONY: doc install-doc
4
5 PACKAGE_DOCNAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc
6
7 if EFL_BUILD_DOC
8
9 doc-clean:
10         rm -rf html/ latex/ man/ xml/ $(top_builddir)/$(PACKAGE_DOCNAME).tar*
11
12 doc-build: all
13         $(efl_doxygen)
14         cp img/* html/
15         cp img/* latex/
16
17 doc: doc-build
18         rm -rf $(PACKAGE_DOCNAME).tar*
19         mkdir -p $(PACKAGE_DOCNAME)/doc
20         cp -R html/ latex/ man/ xml/ $(PACKAGE_DOCNAME)/doc
21         tar cf $(PACKAGE_DOCNAME).tar $(PACKAGE_DOCNAME)/
22         bzip2 -9 $(PACKAGE_DOCNAME).tar
23         rm -rf $(PACKAGE_DOCNAME)/
24         mv $(PACKAGE_DOCNAME).tar.bz2 $(top_builddir)
25         @echo "Documentation Package: doc/$(PACKAGE_DOCNAME).tar.bz2"
26         @echo "Documentation HTML: doc/html"
27
28 clean-local: doc-clean
29
30 install-doc: doc-build
31         install -d $(docdir)
32         cp -R html latex man xml $(docdir)
33
34 uninstall-local:
35         rm -rf $(docdir)/html $(docdir)/latex $(docdir)/man $(docdir)/xml
36
37 else
38
39 doc:
40         @echo "Documentation not built. Run ./configure --help"
41
42 install-doc: doc
43
44 endif
45
46 EXTRA_DIST = $(srcdir)/Doxyfile.in \
47         $(wildcard $(srcdir)/img/*.*) \
48         $(srcdir)/e.css \
49         $(srcdir)/head.html \
50         $(srcdir)/foot.html