summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
blob: 1c3406203a15a82309c63ba79af9d23a9af7d9c7 (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
## Process this file with automake to produce Makefile.in

DOCINPUTS = $(top_srcdir)/include/opus.h \
            $(top_srcdir)/include/opus_multistream.h \
            $(top_srcdir)/include/opus_defines.h \
            $(top_srcdir)/include/opus_types.h \
            $(top_srcdir)/include/opus_custom.h \
            $(top_srcdir)/doc/header.html \
            $(top_srcdir)/doc/footer.html \
            $(top_srcdir)/doc/customdoxygen.css

EXTRA_DIST = Doxyfile.in opus_logo.svg

all-local: doxygen-build.stamp


if HAVE_DOXYGEN
doxygen-build.stamp: Doxyfile $(DOCINPUTS)
	doxygen
	touch $@

install-data-local:
	for f in `find html -type f \! -name "installdox"`; do	\
		$(INSTALL_DATA) -D $$f $(DESTDIR)$(docdir)/$$f;	\
	done

	$(INSTALL) -d $(DESTDIR)$(mandir)/man3
	cd man && find man3 -type f \
		  -exec $(INSTALL_DATA) \{} $(DESTDIR)$(mandir)/man3 \;
else
doxygen-build.stamp: Doxyfile $(DOCINPUTS)
	@echo "*** Warning: Doxygen not found; API documentation will not be built."
	touch $@
endif


# delete doxygen subdirs
clean-local:
	$(RM) -r html
	$(RM) -r latex
	$(RM) -r man
	$(RM) doxygen-build.stamp

uninstall-local:
	$(RM) -r $(DESTDIR)$(docdir)/html
	$(RM) $(DESTDIR)$(mandir)/man3/opus_*.3 $(DESTDIR)$(mandir)/man3/opus.h.3