21cd57106c2e971c94245ad57afe772e92395573
[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
39 BUILT_XML_FILES =                       
40
41 # ----------------------------------------------------------------
42
43 %.html : %.xml
44         xmlto html-nochunks $<
45
46 %.xml : % make_numbered_listing.py
47         ./make_numbered_listing.py $<
48
49 install-data-local:
50         mkdir -p $(DESTDIR)$(docdir)/html
51         @for i in $(HTML_FILES); do \
52                 echo "$(INSTALL_DATA) $$i $(DESTDIR)$(docdir)/html"; \
53                 $(INSTALL_DATA) $$i $(DESTDIR)$(docdir)/html; \
54         done
55
56 uninstall-local:
57         @for i in $(HTML_FILES); do \
58                 echo "$(RM) $(DESTDIR)$(docdir)/$$i;"; \
59                 $(RM) $(DESTDIR)$(docdir)/$$i; \
60         done
61         $(RM) -fr $(DESTDIR)$(docdir)/html
62
63 clean-local:
64         $(RM) -fr $(HTML_FILES) *~