home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / automake-1.1e-bin.lha / share / automake / guide.am < prev    next >
Encoding:
Text File  |  1996-10-12  |  1.8 KB  |  47 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.  
  19. .texi.guide:
  20.     $(MAKEGUIDE) -I$(srcdir) $< -o $(srcdir)/$@
  21.  
  22.  
  23. ## Look in both . and srcdir because the guide pages might have been
  24. ## rebuilt in the build directory.  Can't cd to srcdir; that might
  25. ## break a possible install-sh reference.
  26. install-guide: $(GUIDE_DEPS)
  27.     $(mkinstalldirs) $(guidedir)
  28.     for file in $(GUIDE_DEPS); do        \
  29. ## We use these strange circumlocutions because we want the "ifile" to
  30. ## be relative, for the install.
  31.       for ifile in `cd $(srcdir) && echo $$file*`; do \
  32.         $(INSTALL_DATA) $(srcdir)/$$ifile $(guidedir)/$$ifile; \
  33.       done;                    \
  34. ## We need the 'else' because in some broken versions of sh 'if' will
  35. ## return false if the test fails.  We use ':' because the GNU
  36. ## standards prohibit us from using 'true'.
  37. ## FIXME no one has install-info, so for now we just comment it out.
  38. ##      if $(SHELL) -c 'install-guide --version' >/dev/null 2>&1; then \
  39. ##        install-guide --dir-file=$(guidedir)/dir $$d/$$file; \
  40. ##      else :; fi;                \
  41.     done
  42.  
  43. uninstall-guide:
  44.     cd $(srcdir) && for file in *.guide*; do    \
  45.       rm -f $(guidedir)/$$file; \
  46.     done
  47.