Imported Upstream version 1.7.7
[platform/upstream/embryo.git] / doc / Makefile.am
1 MAINTAINERCLEANFILES = Makefile.in embryo.dox
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
26 clean-local: doc-clean
27
28 install-doc: doc-build
29         install -d $(docdir)
30         cp -R html latex man xml $(docdir)
31
32 uninstall-local:
33         rm -rf $(docdir)/html $(docdir)/latex $(docdir)/man $(docdir)/xml
34
35 else
36
37 doc:
38         @echo "Documentation not built. Run ./configure --help"
39
40 install-doc: doc
41
42 endif
43
44 EXTRA_DIST = Doxyfile e.css foot.html head.html $(wildcard img/*.*) embryo.dox.in