home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / unixtex-6.1b-src.tgz / tar.out / contrib / unixtex / Makefile.in < prev    next >
Makefile  |  1996-09-28  |  3KB  |  82 lines

  1. # Top-level Makefile for kpathsea-using programs.
  2.  
  3. # Package subdirectories, the library, and all subdirectories.
  4. programs = dviljk dvipsk gsftopkk web2c #xdvik
  5. kpathsea_dir = kpathsea
  6. all_dirs = $(programs) $(kpathsea_dir)
  7.  
  8. ac_include make/paths.make
  9. ac_include make/makevars.make
  10.  
  11. # It's too bad we have to pass all these down, but I see no alternative,
  12. # if we are to propagate changes at the top level.
  13. makeargs = $(MFLAGS) CC='$(CC)' CFLAGS='$(CFLAGS)' $(makevars) $(XMAKEARGS)
  14. installargs = INSTALL='$(INSTALL)' INSTALL_DATA='$(INSTALL_DATA)' \
  15.          INSTALL_PROGRAM='$(INSTALL_PROGRAM)' $(makeargs)
  16.  
  17. # Not everything from common.make is relevant to this top-level
  18. # Makefile, but most of it is, and it doesn't seem worth separating the
  19. # compilation-specific stuff.
  20. ac_include make/common.make
  21.  
  22. # kpathsea is not a sibling, it's a child.
  23. kpathsea_parent = .
  24.  
  25. # Make the library before the programs.
  26. # Use if ... rather than || or && because Ultrix make exits for
  27. # no good reason with the latter.
  28. default all: do-kpathsea
  29.     for d in $(programs); do if test -d $$d; then \
  30.       (cd $$d; $(MAKE) $(makeargs) $@); else true; fi; done
  31.  
  32. # After doing an install, update the texmf directory with the
  33. # latest distribution files, then create the ls-R database.  Note
  34. # that on the Amiga we have to create a temporary file first, in
  35. # a location other than where we are doing the ls -R, otherwise
  36. # the ls-R file will contain an error message that ls cannot
  37. # open it.
  38. install install-data install-exec:
  39.     for d in kpathsea $(programs); do if test -d $$d; then \
  40.       (cd $$d; $(MAKE) $(installargs) $@); else true; fi; done
  41.     cp -r $(srcdir)/texmf $(datadir)
  42.     find $(datadir) -type d -name CVS -print | xargs rm -rf
  43.     ls -R $(datadir)/texmf >/tmp/ls-R
  44.     cp /tmp/ls-R $(datadir)/texmf/ls-R
  45.     rm -f /tmp/ls-R
  46.  
  47. # Other standard targets for everything.
  48. uninstall uninstall-exec uninstall-data \
  49. mostlyclean clean distclean realclean extraclean configclean \
  50. TAGS info dvi check depend::
  51.     for d in $(all_dirs); do if test -d $$d; then \
  52.       (cd $$d; $(MAKE) $(makeargs) $@); else true; fi; done
  53.  
  54. distclean realclean::
  55.     rm -f Makefile config.status config.cache config.log
  56.  
  57. # Unconditionally remake the library, since we don't want to write out
  58. # the dependencies here.
  59. do-kpathsea:
  60.     cd $(kpathsea_dir); $(MAKE) $(makeargs)
  61.  
  62. # Targets that only apply to web2c.
  63. triptrap run-triptrap clean-triptrap run-trip clean-trip run-trap clean-trap \
  64. c-sources programs TeX MF BibTeX \
  65. formats fmts bases install-fmts install-bases \
  66. manpages install-manpages: do-kpathsea
  67.     cd web2c && $(MAKE) $(makeargs) $@
  68.  
  69. ##ifdef HOSTNAME
  70. ##ac_dir = $(gnu)/share/autoconf
  71. ##autoconf = $(ac_dir)/acspecific.m4 $(ac_dir)/acgeneral.m4 $(ac_dir)/acsite.m4
  72. ##configure_in = $(srcdir)/configure.in
  73. ##$(srcdir)/configure: $(configure_in) $(autoconf)
  74. ##    cd $(srcdir); autoconf
  75. ##endif
  76.  
  77. config.status: $(srcdir)/configure
  78.     $(SHELL) $(srcdir)/configure --no-create --verbose
  79.  
  80. Makefile: $(srcdir)/Makefile.in config.status
  81.     $(SHELL) config.status
  82.