2 # Copyright 2001,2005 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 docdir = $(prefix)/share/doc/@PACKAGE@-@VERSION@/usrp
34 usrp-block-diagram.eps \
35 usrp-block-diagram.png \
40 DOCBOOK_HTML_FILES=usrp_guide.html
41 all-local: dox docbook-html
52 docbook-html: usrp_guide.html
54 usrp_guide.html: usrp_guide.xml
55 xmlto html-nochunks $(top_srcdir)/usrp/doc/usrp_guide.xml
58 $(mkinstalldirs) $(DESTDIR)$(docdir)
59 @for i in $(top_srcdir)/usrp/README $(top_srcdir)/usrp/ChangeLog; do \
60 echo "$(INSTALL_DATA) $$i $(DESTDIR)$(docdir)"; \
61 $(INSTALL_DATA) $$i $(DESTDIR)$(docdir); \
64 mkdir -p $(DESTDIR)$(docdir)/html
65 @for i in $(DOCBOOK_HTML_FILES); do \
66 echo "$(INSTALL_DATA) $$i $(DESTDIR)$(docdir)/html"; \
67 $(INSTALL_DATA) $$i $(DESTDIR)$(docdir)/html; \
69 cp -r html $(DESTDIR)$(docdir)
72 @for i in README ChangeLog; do \
73 echo "$(RM) $(DESTDIR)$(docdir)/$$i;"; \
74 $(RM) $(DESTDIR)$(docdir)/$$i; \
76 $(RM) -fr $(DESTDIR)$(docdir)/html
79 $(RM) -fr latex html man xml $(DOCBOOK_HTML_FILES)