Imported Upstream version 3.0
[debian/gnuradio] / gr-trellis / doc / Makefile.am
1 #
2 # Copyright 2004,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 docdir=$(prefix)/share/doc/@PACKAGE@-@VERSION@
23
24 HTML_FILES =
25
26 if HAS_XMLTO
27 HTML_FILES += \
28     gr-trellis.html
29 endif
30
31 all: $(HTML_FILES)
32
33 EXTRA_DIST = \
34     gr-trellis.xml \
35     make_numbered_listing.py \
36     test_tcm.py \
37     test_tcm.py.xml \
38     test_viterbi_equalization1.py \
39     test_viterbi_equalization1.py.xml
40
41 BUILT_XML_FILES =                       
42
43 # ----------------------------------------------------------------
44
45 %.html : %.xml
46         xmlto html-nochunks $<
47
48 %.xml : % make_numbered_listing.py
49         ./make_numbered_listing.py $<
50
51 install-data-local:
52         mkdir -p $(DESTDIR)$(docdir)/html
53         @for i in $(HTML_FILES); do \
54                 echo "$(INSTALL_DATA) $$i $(DESTDIR)$(docdir)/html"; \
55                 $(INSTALL_DATA) $$i $(DESTDIR)$(docdir)/html; \
56         done
57
58 uninstall-local:
59         @for i in $(HTML_FILES); do \
60                 echo "$(RM) $(DESTDIR)$(docdir)/$$i;"; \
61                 $(RM) $(DESTDIR)$(docdir)/$$i; \
62         done
63         $(RM) -fr $(DESTDIR)$(docdir)/html
64
65 clean-local:
66         $(RM) -fr $(HTML_FILES) *~