summaryrefslogtreecommitdiff
path: root/legacy/eet/doc/Makefile.am
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2008-10-16 08:41:40 +0000
committerVincent Torri <vincent.torri@gmail.com>2008-10-16 08:41:40 +0000
commit3e4465c4fac433a17bd93da7df2a6b4d5e4b26df (patch)
tree375048807db7bed4ddf33e55604c3c70226d7527 /legacy/eet/doc/Makefile.am
parenta3f8f5f27b34f658950da3be95aea9bf93a59d8b (diff)
* add m4 macro for documentation, unit tests and coverage
* put documentation related files in doc, remove gendoc and add a doc rule to create the documentation and a doc tarball named eet-doc-$(version).tar.bz2 * minor cleanup in the autotools SVN revision: 36706
Diffstat (limited to 'legacy/eet/doc/Makefile.am')
-rw-r--r--legacy/eet/doc/Makefile.am56
1 files changed, 21 insertions, 35 deletions
diff --git a/legacy/eet/doc/Makefile.am b/legacy/eet/doc/Makefile.am
index 57448493e0..346819a4bc 100644
--- a/legacy/eet/doc/Makefile.am
+++ b/legacy/eet/doc/Makefile.am
@@ -1,46 +1,32 @@
1 1
2if BUILD_DOCS 2MAINTAINERCLEANFILES = Makefile.in eet.c
3
4# install documentation
5docdir = $(datadir)/$(PACKAGE)/doc
6
7all-local: doc-build.stamp
8
9# rule to remove all old created files
10doc-prepare.stamp:
11 @if test -d html ; then \
12 rm -rf html/ latex/ man/ xml/; \
13 fi
14
15# rule to build documentation and copy necessary files
16doc-build.stamp: doc-prepare.stamp
17 @doxygen
18 @cp img/*.png html/
19 3
20# rules to clean 4.PHONY: doc
21clean-local:
22 @rm -rf html/ latex/ man/ xml/
23 5
24# rule to install the documentation in $(docdir) 6if EFL_BUILD_DOC
25install-data-local:
26 @if ! test -d "$(DESTDIR)$(datadir)/$(PACKAGE)"; then \
27 $(mkinstalldirs) "$(DESTDIR)$(datadir)/$(PACKAGE)"; \
28 fi
29 @if ! test -d "$(DESTDIR)$(docdir)"; then \
30 $(mkinstalldirs) "$(DESTDIR)$(docdir)"; \
31 fi
32 @cp -pr html/ man/ latex/ xml/ "$(DESTDIR)$(docdir)"
33 7
34# rule to uninstall the documentation 8doc-clean:
35uninstall-local: 9 rm -rf html/ latex/ man/ xml/ $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar*
36 rm -rf $(DESTDIR)$(docdir)
37 10
11doc: all doc-clean
12 $(DOXYGEN)
13 cp img/*.png html/
14 rm -rf $(PACKAGE_TARNAME)-doc-$(PACKAGE_VERSION).tar*
15 mkdir -p $(PACKAGE_TARNAME)-doc-$(PACKAGE_VERSION)/doc
16 cp -R html/ latex/ man/ $(PACKAGE_TARNAME)-doc-$(PACKAGE_VERSION)/doc
17 tar cf $(PACKAGE_TARNAME)-doc-$(PACKAGE_VERSION).tar $(PACKAGE_TARNAME)-doc-$(PACKAGE_VERSION)
18 bzip2 -9 $(PACKAGE_TARNAME)-doc-$(PACKAGE_VERSION).tar
19 rm -rf $(PACKAGE_TARNAME)-doc-$(PACKAGE_VERSION)
20 mv $(PACKAGE_TARNAME)-doc-$(PACKAGE_VERSION).tar.bz2 $(top_srcdir)
38 21
39MAINTAINERCLEANFILES = Makefile.in eet.c 22else
40 23
41DISTCLEANFILES = Makefile.in eet.c 24doc:
25 @echo "Documentation not built. Run ./configure --help"
42 26
43endif 27endif
44 28
45EXTRA_DIST = Doxyfile eet.css foot.html head.html img/ 29clean-local: doc-clean
30
31EXTRA_DIST = Doxyfile eet.css foot.html head.html img/ eet.c.in
46 32