Recognizes if input is ogg or not.
[xiph/unicode.git] / theora / doc / Makefile.am
blob30eaad8eaadbe48fefe59bd650e700032e663151
1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = spec
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
15 if HAVE_DOXYGEN
16 doxygen-build.stamp: Doxyfile $(top_srcdir)/include/theora/*.h
17         doxygen
18         touch doxygen-build.stamp
19 else
20 doxygen-build.stamp:
21         echo "*** Warning: Doxygen not found; documentation will not be built."
22         touch doxygen-build.stamp
23 endif
25 dist_docdir = $(distdir)/libtheora
27 dist-hook:
28         if test -d libtheora; then \
29           mkdir $(dist_docdir); \
30           echo -n "copying built documenation..."; \
31           for dir in libtheora/*; do \
32             b=`basename $$dir`; \
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; \
38                 done; \
39               fi; \
40             fi; \
41           done; \
42           echo "OK"; \
43         fi
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`; \
48             echo "OK"; \
49           fi; \
50         done
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 \
59               b=`basename $$dir`; \
60               $(mkinstalldirs) $(DESTDIR)$(docdir)/$$b; \
61               for f in $$dir/*; do \
62                 $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$b; \
63               done \
64             fi \
65           done \
66         fi
68 uninstall-local:
69         rm -rf $(DESTDIR)$(docdir)
71 clean-local:
72         if test -d libtheora; then rm -rf libtheora; fi
73         if test -f doxygen-build.stamp; then rm -f doxygen-build.stamp; fi