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