home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / autoconf-2.1-src.lha / autoconf-2.1 / Makefile.in < prev    next >
Encoding:
Makefile  |  1994-11-10  |  6.3 KB  |  208 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. PERL = @PERL@
  30.  
  31. # Programs that are always installed.
  32. ASCRIPTS = autoconf autoheader autoreconf autoupdate ifnames 
  33. SCRIPTS = $(ASCRIPTS) @SCRIPTS@
  34.  
  35. transform=@program_transform_name@
  36.  
  37. prefix = @prefix@
  38. exec_prefix = @exec_prefix@
  39.  
  40. # Directory in which to install scripts.
  41. bindir = $(exec_prefix)/bin
  42.  
  43. # Directory in which to install library files.
  44. datadir = $(prefix)/lib
  45. acdatadir = $(datadir)/autoconf
  46.  
  47. # Directory in which to install documentation info files.
  48. infodir = $(prefix)/info
  49.  
  50. #### End of system configuration section. ####
  51.  
  52. SHELL = /bin/sh
  53.  
  54. SUBDIRS = testsuite
  55.  
  56. M4FILES = autoconf.m4 acgeneral.m4 acoldnames.m4 acspecific.m4 autoheader.m4
  57.  
  58. # Files that can be generated, but should be up to date for a distribution.
  59. DISTDEP = info Makefile
  60. # Files to distribute.
  61. DISTFILES = COPYING ChangeLog ChangeLog.1 INSTALL \
  62.     Makefile.in NEWS README TODO $(M4FILES) \
  63.     acconfig.h acfunctions acheaders acidentifiers \
  64.     acmakevars acprograms autoconf.info* \
  65.     autoconf.sh autoconf.texi install.texi \
  66.     autoheader.sh autoscan.pl autoreconf.sh autoupdate.sh ifnames.sh \
  67.     config.guess config.sub configure configure.in \
  68.     install-sh mkinstalldirs texinfo.tex \
  69.     testsuite/Makefile.in testsuite/config/*.exp \
  70.     testsuite/lib/*.exp testsuite/autoconf.[gs]/*.exp \
  71.     standards.texi make-stds.texi standards.info*
  72.  
  73. editsh = sed -e 's,@''datadir''@,$(acdatadir),g' -e 's,@''M4''@,$(M4),g'
  74. editpl = sed -e 's,@''datadir''@,$(acdatadir),g' -e 's,@''PERL''@,$(PERL),g'
  75.  
  76. all: ${SCRIPTS}
  77.  
  78. .SUFFIXES:
  79. .SUFFIXES: .sh .pl
  80.  
  81. .sh:
  82.     rm -f $@ $@.tmp
  83.     $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
  84.  
  85. .pl:
  86.     rm -f $@ $@.tmp
  87.     $(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
  88.  
  89. info: autoconf.info @standards_info@ INSTALL
  90.  
  91. autoconf.info: autoconf.texi install.texi
  92.     $(MAKEINFO) -I$(srcdir) $(srcdir)/autoconf.texi --output=$@
  93.  
  94. INSTALL: install.texi
  95.     $(MAKEINFO) -I$(srcdir) $(srcdir)/install.texi --output=$@ \
  96.     --no-headers --no-validate
  97.  
  98. standards.info: standards.texi make-stds.texi
  99.     $(MAKEINFO) -I$(srcdir) $(srcdir)/standards.texi --output=$@
  100.  
  101. dvi: autoconf.dvi @standards_dvi@
  102.  
  103. autoconf.dvi: autoconf.texi
  104.     $(TEXI2DVI) $(srcdir)/autoconf.texi
  105.  
  106. standards.dvi: standards.texi make-stds.texi
  107.     $(TEXI2DVI) $(srcdir)/standards.texi
  108.  
  109. check: all
  110.     rootme=`pwd`; srcrootme=`cd $(srcdir); pwd`; \
  111.     test -r install-sh || cp $(srcdir)/install-sh .; \
  112.     cd testsuite && ${MAKE} $@ AUTOCONF=$$rootme/autoconf \
  113.     AUTOCONFFLAGS="-m $$srcrootme"
  114.  
  115. installcheck: all install
  116.     cd testsuite && ${MAKE} AUTOCONF=${bindir}/autoconf $@
  117.  
  118. installdirs:
  119.     $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(acdatadir)
  120.  
  121. install: all $(M4FILES) acconfig.h installdirs install-info
  122.     @case `$(M4) --help < /dev/null 2>&1` in \
  123.     *reload-state*) echo installing frozen m4 files; \
  124.       $(M4) -F $(acdatadir)/autoconf.m4f -I${srcdir} ${srcdir}/autoconf.m4 ; \
  125.       $(M4) -F $(acdatadir)/autoheader.m4f -I${srcdir} ${srcdir}/autoheader.m4 ;; \
  126.     *traditional*) ;; \
  127.     *) echo Error: Autoconf requires GNU m4 1.1 or later; exit 1 ;; \
  128.     esac
  129.     for p in $(ASCRIPTS); do \
  130.       $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
  131.     done
  132.     for i in $(M4FILES) acconfig.h; do \
  133.     $(INSTALL_DATA) $(srcdir)/$$i $(acdatadir)/$$i; \
  134.     done
  135.     -if test -f autoscan; then \
  136.     $(INSTALL_PROGRAM) autoscan $(bindir)/`echo autoscan|sed '$(transform)'`; \
  137.     for i in acfunctions acheaders acidentifiers acprograms \
  138.       acmakevars; do \
  139.     $(INSTALL_DATA) $(srcdir)/$$i $(acdatadir)/$$i; \
  140.     done; \
  141.     else :; fi
  142.  
  143. install-info: info installdirs
  144.     -test -f autoconf.info || cd $(srcdir); \
  145.     for i in autoconf.info*; do \
  146.     $(INSTALL_DATA) $$i $(infodir)/$$i; \
  147.     done
  148.     -test -f standards.info || cd $(srcdir); \
  149.     for i in standards.info*; do \
  150.     $(INSTALL_DATA) $$i $(infodir)/$$i; \
  151.     done
  152.  
  153. uninstall:
  154.     for p in $(SCRIPTS); do \
  155.       rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \
  156.     done
  157.     rm -fr $(acdatadir)
  158.     cd $(infodir); rm -f autoconf.info*
  159.     if test -f standards.info || test -f $(srcdir)/standards.info; \
  160.     then cd $(infodir); rm -f standards.info*; fi
  161.  
  162. ${srcdir}/configure: configure.in $(M4FILES)
  163.     cd $(srcdir); \
  164.     rm -f $@ $@.tmp; \
  165.     $(M4) autoconf.m4 configure.in > $@.tmp && \
  166.     chmod +x $@.tmp && mv $@.tmp $@
  167. Makefile: Makefile.in config.status
  168.     ./config.status
  169. config.status: configure
  170.     ./config.status --recheck
  171.  
  172. clean mostlyclean distclean realclean::
  173.     for dir in $(SUBDIRS); do \
  174.       echo making $@ in $$dir ; \
  175.       (cd $$dir; $(MAKE) $@) ; \
  176.     done
  177.  
  178. clean mostlyclean distclean realclean::
  179.     rm -f $(SCRIPTS) *.tmp 
  180.     rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log
  181.     rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
  182.     rm -f *.ev *.evs *.ov *.ovs *.cv *.cvs *.ma *.mas
  183.  
  184. distclean realclean::
  185.     rm -f Makefile config.status config.cache config.log
  186.  
  187. realclean::
  188.     rm -f TAGS *.info* INSTALL
  189.  
  190. TAGS:
  191.     etags ${srcdir}/*.m4 ${srcdir}/*.sh ${srcdir}/[a-z]*.in ${srcdir}/*.texi
  192.  
  193. # Don't depend on DISTFILES because there's no rule for "standards.info*".
  194. dist: $(DISTDEP)
  195.     distname=`sed -e '/define(AC_ACVERSION,/!d' \
  196.     -e 's/[^0-9.]*\([0-9.]*\).*/autoconf-\1/' -e q acgeneral.m4`; \
  197.     rm -fr $$distname; \
  198.     mkdir $$distname $$distname/testsuite $$distname/testsuite/config \
  199.     $$distname/testsuite/lib $$distname/testsuite/autoconf.g \
  200.     $$distname/testsuite/autoconf.s; \
  201.     for file in $(DISTFILES); do \
  202.       ln $$file $$distname/$$file \
  203.       || { echo copying $$file instead; cp -p $$file $$distname/$$file;}; \
  204.     done; \
  205.     chmod -R a+rX $$distname; \
  206.     tar -chz -f $$distname.tar.gz $$distname; \
  207.     rm -fr $$distname
  208.