home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / automake-1.1e-bin.lha / share / automake / texinfos.am < prev    next >
Encoding:
Text File  |  1996-10-12  |  2.4 KB  |  64 lines

  1. ## automake - create Makefile.in from Makefile.am
  2. ## Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
  3.  
  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.
  8.  
  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.
  13.  
  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. ## We want to force the .info file to be built in srcdir.  This is
  20. ## probably the simplest way.
  21.     cd $(srcdir) \
  22.       && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
  23.  
  24. .texi.dvi:
  25.     TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
  26.  
  27. .texinfo.info:
  28. ## We want to force the .info file to be built in srcdir.  This is
  29. ## probably the simplest way.
  30.     cd $(srcdir) \
  31.       && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
  32.  
  33. .texinfo.dvi:
  34.     TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
  35.  
  36. ## Look in both . and srcdir because the info pages might have been
  37. ## rebuilt in the build directory.  Can't cd to srcdir; that might
  38. ## break a possible install-sh reference.
  39. install-info: $(INFO_DEPS)
  40.     $(NORMAL_INSTALL)
  41.     $(mkinstalldirs) $(infodir)
  42.     for file in $(INFO_DEPS); do \
  43. ## We use these strange circumlocutions because we want the "ifile" to
  44. ## be relative, for the install.
  45.       for ifile in `cd $(srcdir) && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
  46.         if test -f $(srcdir)/$$ifile; then \
  47.           $(INSTALL_DATA) $(srcdir)/$$ifile $(infodir)/$$ifile; \
  48.         else : ; fi; \
  49.       done; \
  50. ## We need the 'else' because in some broken versions of sh 'if' will
  51. ## return false if the test fails.  We use ':' because the GNU
  52. ## standards prohibit us from using 'true'.
  53. ## FIXME: no one has install-info, so for now we just comment it out.
  54. ##      $(POST_INSTALL); \
  55. ##      if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
  56. ##        install-info --dir-file=$(infodir)/dir $$d/$$file; \
  57. ##      else :; fi; \
  58.     done
  59.  
  60. uninstall-info:
  61.     cd $(srcdir) && for file in *.info*; do    \
  62.       rm -f $(infodir)/$$file; \
  63.     done
  64.