home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / unixtex-6.1b-src.tgz / tar.out / contrib / unixtex / make / config.make < prev    next >
Encoding:
Text File  |  1996-09-28  |  1.6 KB  |  40 lines

  1. # config.make -- autoconf rules to remake the Makefile, c-auto.h, etc.
  2.  
  3. ##ifdef HOSTNAME
  4. ##ac_dir = $(gnu)/share/autoconf
  5. ##autoconf = $(ac_dir)/acspecific.m4 $(ac_dir)/acgeneral.m4 $(ac_dir)/acsite.m4
  6. ##autoheader = $(ac_dir)/acconfig.h
  7. ##
  8. ### I define $(autoconf) to acgeneral.m4 and the other Autoconf files, so
  9. ### configure automatically gets remade in the sources with a new Autoconf
  10. ### release.  But it would be bad for installers with Autoconf to remake
  11. ### configure (not to mention require Autoconf), so I take out the variable
  12. ### $(autoconf) definition before release.
  13. ##configure_in = $(srcdir)/configure.in $(kpathsea_srcdir)/common.ac
  14. ##$(srcdir)/configure: $(configure_in) $(autoconf)
  15. ##    cd $(srcdir) && autoconf
  16. ##endif
  17.  
  18. config.status: $(srcdir)/configure
  19.     $(SHELL) $(srcdir)/configure --no-create --verbose
  20.  
  21. Makefile: $(srcdir)/Makefile.in config.status $(top_srcdir)/../make/*.make
  22.     $(SHELL) config.status
  23.  
  24. # This rule isn't used for web2c or the top-level Makefile, but it
  25. # doesn't hurt.  We don't depend on config.status because configure
  26. # always rewrites config.status, even when it doesn't change. Thus it
  27. # might be newer than c-auto.h when we don't need to remake the latter.
  28. c-auto.h: $(srcdir)/stamp-auto
  29. $(srcdir)/stamp-auto: $(srcdir)/c-auto.h.in
  30.     $(SHELL) config.status
  31.     touch $(srcdir)/stamp-auto
  32.  
  33. ##ifdef HOSTNAME
  34. ### autoheader reads acconfig.h (and c-auto.h.top) automatically.
  35. ##$(srcdir)/c-auto.h.in: $(srcdir)/stamp-auto.in
  36. ##$(srcdir)/stamp-auto.in: $(configure_in) $(autoheader) $(srcdir)/acconfig.h
  37. ##    cd $(srcdir) && autoheader
  38. ##    touch $(srcdir)/stamp-auto.in
  39. ##endif
  40.