summaryrefslogtreecommitdiff
path: root/legacy/eet/doc/Makefile.am
blob: b76ecc16b362d8edf6781e2b53c4074752484de8 (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
45
46
47
48

if BUILD_DOCS

# install documentation
docdir = $(datadir)/$(PACKAGE)/doc

all-local: doc-build.stamp

# rule to remove all old created files
doc-prepare.stamp:
	@if test -d html ; then \
	  rm -rf html/ latex/ man/ xml/; \
	fi

# rule to build documentation and copy necessary files
doc-build.stamp: doc-prepare.stamp
	@doxygen
	@cp img/*.png html/

# rules to clean
clean-local:
	@rm -rf html/ latex/ man/ xml/

distclean-local: clean
	rm -f Makefile.in

# rule to install the documentation in $(docdir)
install-data-local:
	@if ! test -d $(DESTDIR)$(datadir)/$(PACKAGE); then \
	  mkdir $(DESTDIR)$(datadir)/$(PACKAGE); \
	fi
	@if ! test -d $(DESTDIR)$(docdir); then \
	  mkdir $(DESTDIR)$(docdir); \
	fi
	@cp -pr html/ man/ latex/ xml/ $(DESTDIR)$(docdir)

# rule to uninstall the documentation
uninstall-local:
	rm -rf $(DESTDIR)$(docdir)


MAINTAINERCLEANFILES = Makefile.in eet.c

DISTCLEANFILES = Makefile.in eet.c

EXTRA_DIST = Doxyfile eet.css foot.html head.html img/

endif