Fixlets
[automake.git] / texinfos.am
blob7b6f7545bb264979c27ed3c6791df4a973fbd48e
1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
4 ## This program is free software; you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 2, or (at your option)
7 ## any later version.
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ## GNU General Public License for more details.
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program; if not, write to the Free Software
16 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17 ## 02111-1307, USA.
18 .texi.info:
19 ## FIXME is this right?  We make sure the output file goes into srcdir.
20         $(MAKEINFO) -I$(srcdir) $< -o $(srcdir)/$@
22 .texi.dvi:
23         TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
25 ## Look in both . and srcdir because the info pages might have been
26 ## rebuilt in the build directory.  Can't cd to srcdir; that might
27 ## break a possible install-sh reference.
28 install-info: $(INFO_DEPS)
29         $(top_srcdir)/mkinstalldirs $(infodir)
30         for file in $(INFO_DEPS); do            \
31 ## We use these strange circumlocutions because we want the "ifile" to
32 ## be relative, for the install.
33           for ifile in `cd $(srcdir) && echo $$file*`; do \
34             $(INSTALL_DATA) $(srcdir)/$$ifile $(infodir)/$$ifile; \
35           done;                                 \
36 ## We need the 'else' because in some broken versions of sh 'if' will
37 ## return false if the test fails.  We use ':' because the GNU
38 ## standards prohibit us from using 'true'.
39 ## FIXME no one has install-info, so for now we just comment it out.
40 ##        if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
41 ##          install-info --dir-file=$(infodir)/dir $$d/$$file; \
42 ##        else :; fi;                           \
43         done
45 uninstall-info:
46         cd $(srcdir) && for file in *.info*; do \
47           rm -f $(infodir)/$$file; \
48         done