chiark / gitweb /
manual/Makefile.am: Install the HTML version of the manual correctly.
[become] / manual / Makefile.am
1 ## Process this file with `automake' to generate `Makefile.in'
2 ## -*-makefile-*-
3 ##
4 ## $Id: Makefile.am,v 1.10 2004/04/08 01:36:20 mdw Exp $
5 ##
6 ## Makefile for `become'
7 ##
8 ## (c) 1998 EBI
9 ##
10
11 ##----- Licensing notice ----------------------------------------------------
12 ##
13 ## This file is part of `become'
14 ## 
15 ## `Become' is free software; you can redistribute it and/or modify
16 ## it under the terms of the GNU General Public License as published by
17 ## the Free Software Foundation; either version 2 of the License, or
18 ## (at your option) any later version.
19 ## 
20 ## `Become' is distributed in the hope that it will be useful,
21 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
22 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23 ## GNU General Public License for more details.
24 ## 
25 ## You should have received a copy of the GNU General Public License
26 ## along with `become'; if not, write to the Free Software Foundation,
27 ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28
29 ##----- Distribute the right things -----------------------------------------
30
31 htmldir = @htmldir@
32
33 EXTRA_DIST = gpl.texi texinfo.tex texinice.tex stamp-html.in
34 info_TEXINFOS = become.texi
35 noinst_DATA = become_*.html
36
37 become_*.html: stamp-html.in
38
39 stamp-html.in: $(srcdir)/become.texi
40         cd $(srcdir); texi2html -menu -split_node become.texi
41         echo datestamp >$(srcdir)/stamp-html.in
42
43 install-data-local: stamp-html.in
44         $(mkinstalldirs) $(DESTDIR)$(htmldir)
45         for i in $(srcdir)/become/become_*.html; do \
46           $(INSTALL_DATA) $$i $(DESTDIR)$(htmldir); \
47         done
48
49 uninstall-local:
50         rm -f $(htmldir)/become_*.html
51
52 dist-hook:
53         distdir=`cd $(distdir) && pwd`; \
54         cd $(srcdir); \
55         mkdir $$distdir/become; \
56         ln become/become_*.html $$distdir/become
57
58 MAINTAINERCLEANFILES = \
59         $(srcdir)/stamp-html.in $(srcdir)/become/become_*.html \
60         $(srcdir)/become.info*
61
62 ##----- That's all, folks ---------------------------------------------------