Home | History | Annotate | Download | only in doc
      1 ## Process this file with automake to produce Makefile.in
      2 
      3 DOCINPUTS = $(top_srcdir)/include/opus.h \
      4             $(top_srcdir)/include/opus_multistream.h \
      5             $(top_srcdir)/include/opus_defines.h \
      6             $(top_srcdir)/include/opus_types.h \
      7             $(top_srcdir)/include/opus_custom.h \
      8             $(top_srcdir)/doc/header.html \
      9             $(top_srcdir)/doc/footer.html \
     10             $(top_srcdir)/doc/customdoxygen.css
     11 
     12 EXTRA_DIST = customdoxygen.css Doxyfile.in footer.html header.html \
     13              opus_logo.svg trivial_example.c
     14 
     15 
     16 if HAVE_DOXYGEN
     17 
     18 all-local: doxygen-build.stamp
     19 
     20 doxygen-build.stamp: Doxyfile $(DOCINPUTS)
     21 	doxygen
     22 	touch $@
     23 
     24 install-data-local:
     25 	$(INSTALL) -d $(DESTDIR)$(docdir)/html/search
     26 	for f in `find html -type f \! -name "installdox"`; do	\
     27 		$(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$f;	\
     28 	done
     29 
     30 	$(INSTALL) -d $(DESTDIR)$(mandir)/man3
     31 	cd man && find man3 -type f -name opus_*.3 \
     32 		  -exec $(INSTALL_DATA) \{} $(DESTDIR)$(mandir)/man3 \;
     33 
     34 clean-local:
     35 	$(RM) -r html
     36 	$(RM) -r latex
     37 	$(RM) -r man
     38 	$(RM) doxygen-build.stamp
     39 	$(RM) doxygen_sqlite3.db
     40 
     41 uninstall-local:
     42 	$(RM) -r $(DESTDIR)$(docdir)/html
     43 	$(RM) $(DESTDIR)$(mandir)/man3/opus_*.3 $(DESTDIR)$(mandir)/man3/opus.h.3
     44 
     45 endif
     46