home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 7 / FreshFishVol7.bin / bbs / gnu / autoconf-1.11-src.lha / GNU / src / amiga / autoconf-1.11 / Makefile.in < prev    next >
Makefile  |  1994-06-12  |  4KB  |  143 lines

  1. # Makefile for Autoconf.
  2. # Copyright (C) 1992, 1993, 1994 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., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #### Start of system configuration section. ####
  19.  
  20. srcdir = @srcdir@
  21. VPATH = @srcdir@
  22.  
  23. INSTALL = @INSTALL@
  24. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  25. INSTALL_DATA = @INSTALL_DATA@
  26. MAKEINFO = makeinfo
  27. TEXI2DVI = texi2dvi
  28. M4 = @M4@
  29.  
  30. prefix = /gnu
  31. exec_prefix = $(prefix)
  32.  
  33. # Directory in which to install scripts.
  34. bindir = $(exec_prefix)/bin
  35.  
  36. # Directory in which to install library files.
  37. datadir = $(prefix)/lib
  38. acdatadir = $(datadir)/autoconf
  39.  
  40. # Directory in which to install documentation info files.
  41. infodir = $(prefix)/info
  42.  
  43. #### End of system configuration section. ####
  44.  
  45. SHELL = /bin/sh
  46.  
  47. DISTFILES = README Makefile.in INSTALL NEWS COPYING ChangeLog \
  48. autoconf.texi acconfig.h autoconf.sh acgeneral.m4 acspecific.m4 \
  49. configure configure.in autoheader.sh mkinstalldirs install.sh \
  50. autoconf.info standards.texi make-stds.texi standards.info texinfo.tex
  51.  
  52. editsh = sed -e 's,@''datadir''@,$(acdatadir),g' -e 's,@''M4''@,$(M4),g'
  53.  
  54. all: autoconf autoheader
  55.  
  56. autoconf: autoconf.sh
  57.     rm -f $@ $@.tmp
  58.     $(editsh) $(srcdir)/autoconf.sh > $@.tmp && mv $@.tmp $@ && chmod +x $@
  59.  
  60. autoheader: autoheader.sh
  61.     rm -f $@ $@.tmp
  62.     $(editsh) $(srcdir)/autoheader.sh > $@.tmp && mv $@.tmp $@ && chmod +x $@
  63.  
  64. info: autoconf.info standards.info
  65.  
  66. autoconf.info: autoconf.texi
  67.     $(MAKEINFO) -I$(srcdir) $(srcdir)/autoconf.texi --no-split --output=$@
  68.  
  69. standards.info: standards.texi make-stds.texi
  70.     $(MAKEINFO) -I$(srcdir) $(srcdir)/standards.texi --no-split --output=$@
  71.  
  72. dvi: autoconf.dvi standards.dvi
  73.  
  74. autoconf.dvi: autoconf.texi
  75.     $(TEXI2DVI) $(srcdir)/autoconf.texi
  76.  
  77. standards.dvi: standards.texi make-stds.texi
  78.     $(TEXI2DVI) $(srcdir)/standards.texi
  79.  
  80. check:
  81. installcheck:
  82.  
  83. installdirs:
  84.     $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(acdatadir)
  85.  
  86. # References to install-info have been removed until it's released.
  87. install: all acgeneral.m4 acspecific.m4 acconfig.h installdirs install-info
  88.     $(INSTALL_PROGRAM) autoconf $(bindir)/autoconf
  89.     $(INSTALL_PROGRAM) autoheader $(bindir)/autoheader
  90.     $(INSTALL_DATA) $(srcdir)/acgeneral.m4 $(acdatadir)/acgeneral.m4
  91.     $(INSTALL_DATA) $(srcdir)/acspecific.m4 $(acdatadir)/acspecific.m4
  92.     $(INSTALL_DATA) $(srcdir)/acconfig.h $(acdatadir)/acconfig.h
  93.  
  94. install-info: info installdirs
  95.     -if test -f autoconf.info; then d=.; else d=$(srcdir); fi; \
  96.     $(INSTALL_DATA) $$d/autoconf.info $(infodir)/autoconf.info
  97.     -if test -f standards.info; then d=.; else d=$(srcdir); fi; \
  98.     $(INSTALL_DATA) $$d/standards.info $(infodir)/standards.info
  99.  
  100. uninstall:
  101.     rm -f $(bindir)/autoconf $(bindir)/autoheader
  102.     cd $(acdatadir); rm -f acgeneral.m4 acspecific.m4 aclocal.m4 acconfig.h
  103.     -rmdir $(acdatadir)
  104.     cd $(infodir); rm -f autoconf.info standards.info
  105.  
  106. configure: configure.in acgeneral.m4 acspecific.m4
  107.     cd $(srcdir); \
  108.     rm -f $@ $@.tmp; \
  109.     $(M4) acgeneral.m4 acspecific.m4 configure.in > $@.tmp && \
  110.     mv $@.tmp $@ && \
  111.     chmod +x $@
  112. Makefile: Makefile.in config.status
  113.     ./config.status
  114. config.status: configure
  115.     ./config.status --recheck
  116.  
  117. clean:
  118.     rm -f autoconf autoheader *.tmp
  119.     rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log
  120.     rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs *.ma *.mas
  121.  
  122. mostlyclean: clean
  123.  
  124. distclean: clean
  125.     rm -f Makefile config.status
  126.  
  127. realclean: distclean
  128.     rm -f TAGS *.info*
  129.  
  130. TAGS:
  131.     etags ${srcdir}/*.m4 ${srcdir}/*.sh ${srcdir}/[a-z]*.in ${srcdir}/*.texi
  132.  
  133. dist: Makefile $(DISTFILES)
  134.     echo autoconf-`sed -e '/define(AC_ACVERSION,/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q acgeneral.m4` > .fname
  135.     rm -rf `cat .fname`
  136.     mkdir `cat .fname`
  137.     for file in $(DISTFILES); do \
  138.       ln $$file `cat .fname` \
  139.         || { echo copying $$file instead; cp -p $$file `cat .fname`; }; \
  140.     done
  141.     tar --gzip -chf `cat .fname`.tar.gz `cat .fname`
  142.     rm -rf `cat .fname` .fname
  143.