Imported Debian patch 3.0.3-1
[debian/gnuradio] / usrp / doc / Makefile.am
1 #
2 # Copyright 2001,2005 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 2, 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 docdir  = $(prefix)/share/doc/@PACKAGE@-@VERSION@/usrp
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 dox: html/index.html
48 html/index.html:
49         mkdir -p html
50         @DOXYGEN@
51
52 docbook-html: usrp_guide.html
53
54 usrp_guide.html: usrp_guide.xml
55         xmlto html-nochunks $(top_srcdir)/usrp/doc/usrp_guide.xml
56
57 install-data-local:
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); \
62         done
63
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; \
68         done
69         cp -r html $(DESTDIR)$(docdir)
70
71 uninstall-local:
72         @for i in README ChangeLog; do \
73                 echo "$(RM) $(DESTDIR)$(docdir)/$$i;"; \
74                 $(RM) $(DESTDIR)$(docdir)/$$i; \
75         done
76         $(RM) -fr $(DESTDIR)$(docdir)/html
77
78 clean-local:
79         $(RM) -fr latex html man xml $(DOCBOOK_HTML_FILES)