howto: move limbo'd docs into toplevel doc dir for preservation
[debian/gnuradio] / docs / howto-write-a-block / Makefile.am
1 #
2 # Copyright 2004,2005,2007 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 TARGETS = howto-write-a-block.html
23
24 # To avoid build problems for folks who don't have xmlto installed, we
25 # don't build the docs by default.
26
27 # html: $(TARGETS)
28 all: $(TARGETS)
29
30
31 EXTRA_DIST =                            \
32         README                          \
33         howto-write-a-block.xml         \
34         howto_1.i                       \
35         make_numbered_listing.py        \
36         qa_howto_1.py                   \
37         src_lib_Makefile_1.am           \
38         src_lib_Makefile_2.am           
39
40
41 BUILT_XML_FILES =                       \
42         gr_block.h.xml                  \
43         howto_1.i.xml                   \
44         howto_square_ff.cc.xml          \
45         howto_square_ff.h.xml           \
46         howto_square2_ff.cc.xml         \
47         howto_square2_ff.h.xml          \
48         qa_howto_1.py.xml               \
49         src_lib_Makefile_1.am.xml       \
50         src_lib_Makefile_2.am.xml       
51
52
53 howto-write-a-block.html : howto-write-a-block.xml $(BUILT_XML_FILES)
54
55
56 gr_block.h.xml: $(GNURADIO_CORE_INCLUDEDIR)/gr_block.h make_numbered_listing.py
57         $(PYTHON) ./make_numbered_listing.py $(GNURADIO_CORE_INCLUDEDIR)/gr_block.h
58
59 howto_square_ff.cc.xml: $(top_srcdir)/src/lib/howto_square_ff.cc make_numbered_listing.py
60         $(PYTHON) ./make_numbered_listing.py $(top_srcdir)/src/lib/howto_square_ff.cc 
61
62 howto_square_ff.h.xml: $(top_srcdir)/src/lib/howto_square_ff.h make_numbered_listing.py
63         $(PYTHON) ./make_numbered_listing.py $(top_srcdir)/src/lib/howto_square_ff.h 
64
65 howto_square2_ff.cc.xml: $(top_srcdir)/src/lib/howto_square2_ff.cc make_numbered_listing.py
66         $(PYTHON) ./make_numbered_listing.py $(top_srcdir)/src/lib/howto_square2_ff.cc 
67
68 howto_square2_ff.h.xml: $(top_srcdir)/src/lib/howto_square2_ff.h make_numbered_listing.py
69         $(PYTHON) ./make_numbered_listing.py $(top_srcdir)/src/lib/howto_square2_ff.h 
70
71
72 # ----------------------------------------------------------------
73
74 clean:
75         -${RM} -f $(TARGETS) $(BUILT_XML_FILES)
76
77 %.html : %.xml
78         xmlto html-nochunks $<
79
80 %.xml : % make_numbered_listing.py
81         $(PYTHON) ./make_numbered_listing.py $<