Imported Upstream version 3.2.2
[debian/gnuradio] / usrp / doc / Makefile.am
1 #
2 # Copyright 2001,2005,2009 Free Software Foundation, Inc.
3
4 # This file is part of GNU Radio
5
6 # GNU Radio is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
9 # any later version.
10
11 # GNU Radio is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with GNU Radio; see the file COPYING.  If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street,
19 # Boston, MA 02110-1301, USA.
20
21
22 include $(top_srcdir)/Makefile.common
23
24
25 SUBDIRS = other
26
27 man3dir = $(mandir)/man3
28 usrp_docdir  = $(prefix)/share/doc/usrp-@VERSION@
29
30 EXTRA_DIST =                    \
31         Doxyfile.in             \
32         ddc.eps                 \
33         ddc.png                 \
34         usrp-block-diagram.eps  \
35         usrp-block-diagram.png  \
36         usrp.jpg                \
37         usrp_guide.xml          
38
39 if HAS_XMLTO
40 DOCBOOK_HTML_FILES=usrp_guide.html
41 all-local: dox docbook-html
42 else
43 DOCBOOK_HTML_FILES=
44 all-local: dox
45 endif
46
47 dist_usrp_doc_DATA = $(top_srcdir)/usrp/README
48
49 dox: html/index.html
50 html/index.html:
51         $(MKDIR_P) html
52         @DOXYGEN@
53
54 docbook-html: usrp_guide.html
55
56 usrp_guide.html: usrp_guide.xml
57         xmlto html-nochunks $(top_srcdir)/usrp/doc/usrp_guide.xml
58
59 install-data-local:
60         $(MKDIR_P) $(DESTDIR)$(usrp_docdir)/html
61         @for i in $(DOCBOOK_HTML_FILES); do \
62                 echo "$(INSTALL_DATA) $$i $(DESTDIR)$(usrp_docdir)/html"; \
63                 $(INSTALL_DATA) $$i $(DESTDIR)$(usrp_docdir)/html; \
64         done
65         cp -r html $(DESTDIR)$(usrp_docdir)
66
67 uninstall-local:
68         $(RM) -fr $(DESTDIR)$(usrp_docdir)/html
69
70 clean-local:
71         $(RM) -fr latex html man xml $(DOCBOOK_HTML_FILES)