1 ## Process this file with automake to produce Makefile.in
5 docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
7 static_docs = vp3-format.txt color.html \
8 draft-ietf-avt-rtp-theora-00.xml \
9 draft-ietf-avt-rtp-theora-00.txt
11 doc_DATA = $(static_docs) doxygen-build.stamp
13 EXTRA_DIST = $(static_docs) Doxyfile.in
16 doxygen-build.stamp: Doxyfile $(top_srcdir)/include/theora/*.h
18 touch doxygen-build.stamp
21 echo "*** Warning: Doxygen not found; documentation will not be built."
22 touch doxygen-build.stamp
25 dist_docdir = $(distdir)/libtheora
28 if test -d libtheora; then \
29 mkdir $(dist_docdir); \
30 echo -n "copying built documenation..."; \
31 for dir in libtheora/*; do \
33 if test $$b != ".svn"; then \
34 if test -d $$dir; then \
35 mkdir $(dist_docdir)/$$b; \
36 for f in $$dir/*; do \
37 cp -p $$f $(dist_docdir)/$$b; \
44 for item in $(EXTRA_DIST); do \
45 if test -d $$item; then \
46 echo -n "cleaning $$item dir for distribution..."; \
47 rm -rf `find $(distdir)/$$item -name .svn`; \
54 install-data-local: doxygen-build.stamp
55 $(mkinstalldirs) $(DESTDIR)$(docdir)
56 if test -d libtheora; then \
57 for dir in libtheora/*; do \
58 if test -d $$dir; then \
60 $(mkinstalldirs) $(DESTDIR)$(docdir)/$$b; \
61 for f in $$dir/*; do \
62 $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$b; \
69 rm -rf $(DESTDIR)$(docdir)
72 if test -d libtheora; then rm -rf libtheora; fi
73 if test -f doxygen-build.stamp; then rm -f doxygen-build.stamp; fi