summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
blob: 0fe0d9a45a3a0374b39a2dcf2f6a74a20d190720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
MAINTAINERCLEANFILES = Makefile.in embryo.dox

.PHONY: doc install-doc

PACKAGE_DOCNAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc

if EFL_BUILD_DOC

doc-clean:
	rm -rf html/ latex/ man/ xml/ $(top_builddir)/$(PACKAGE_DOCNAME).tar*

doc-build: all
	$(efl_doxygen)
	cp img/* html/
	cp img/* latex/

doc: doc-build
	rm -rf $(PACKAGE_DOCNAME).tar*
	mkdir -p $(PACKAGE_DOCNAME)/doc
	cp -R html/ latex/ man/ xml/ $(PACKAGE_DOCNAME)/doc
	tar cf $(PACKAGE_DOCNAME).tar $(PACKAGE_DOCNAME)/
	bzip2 -9 $(PACKAGE_DOCNAME).tar
	rm -rf $(PACKAGE_DOCNAME)/
	mv $(PACKAGE_DOCNAME).tar.bz2 $(top_builddir)

clean-local: doc-clean

install-doc: doc-build
	install -d $(docdir)
	cp -R html latex man xml $(docdir)

uninstall-local:
	rm -rf $(docdir)/html $(docdir)/latex $(docdir)/man $(docdir)/xml

else

doc:
	@echo "Documentation not built. Run ./configure --help"

install-doc: doc

endif

EXTRA_DIST = Doxyfile e.css foot.html head.html $(wildcard img/*.*) embryo.dox.in