summaryrefslogtreecommitdiffstats
path: root/libvpx/nestegg/docs/Makefile.am
blob: 42cf8eec4b05b44cff4dea117ed74e48dd5ec179 (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
doc_DATA = doxygen-build.stamp

EXTRA_DIST = Doxyfile.in

if HAVE_DOXYGEN
doxygen-build.stamp: Doxyfile
	doxygen
	touch doxygen-build.stamp
else
doxygen-build.stamp:
	echo "*** Warning: Doxygen not found; documentation will not be built."
	touch doxygen-build.stamp
endif

dist_docdir = $(distdir)/libnestegg

dist-hook:
	if test -d html; then \
	  mkdir $(dist_docdir); \
	  echo -n "copying built documenation..."; \
	  cp -rp html $(dist_docdir)/html; \
	  echo "OK"; \
	fi


install-data-local: doxygen-build.stamp
	$(mkinstalldirs) $(DESTDIR)$(docdir)
	if test -d html; then \
	  cp -rp html $(DESTDIR)$(docdir)/html; \
	fi

uninstall-local:
	rm -rf $(DESTDIR)$(docdir)

clean-local:
	if test -d html; then rm -rf html; fi
	if test -f doxygen-build.stamp; then rm -f doxygen-build.stamp; fi