2 # Copyright 2001,2005,2009 Free Software Foundation, Inc.
4 # This file is part of GNU Radio
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)
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.
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.
22 include $(top_srcdir)/Makefile.common
27 man3dir = $(mandir)/man3
28 usrp_docdir = $(prefix)/share/doc/usrp-$(DOCVER)
34 usrp-block-diagram.eps \
35 usrp-block-diagram.png \
40 DOCBOOK_HTML_FILES=usrp_guide.html
41 all-local: dox docbook-html
47 dist_usrp_doc_DATA = $(top_srcdir)/usrp/README
54 docbook-html: usrp_guide.html
56 usrp_guide.html: usrp_guide.xml
57 xmlto html-nochunks $(top_srcdir)/usrp/doc/usrp_guide.xml
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; \
65 cp -r html $(DESTDIR)$(usrp_docdir)
68 $(RM) -fr $(DESTDIR)$(usrp_docdir)/html
71 $(RM) -fr latex html man xml $(DOCBOOK_HTML_FILES)