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

  1. # Makefile for the DVI utility programs.
  2.  
  3. SHELL = /bin/sh
  4. srcdir = @srcdir@
  5. VPATH = @srcdir@
  6.  
  7. # This is so kpathsea will get remade automatically if you change
  8. # something in it and recompile from the package directory.
  9. kpathsea_parent = ../..
  10. kpathsea_dir = $(kpathsea_parent)/kpathsea
  11. kpathsea = $(kpathsea_dir)/kpathsea.a
  12.  
  13. # Routines used everywhere.
  14. commondefines = $(srcdir)/../lib/common.defines
  15. commonh = $(srcdir)/../lib/config.h $(kpathsea_dir)/paths.h
  16. commono = ../lib/lib.a $(kpathsea)
  17.  
  18. program = dvicopy dvitype
  19.  
  20. CC = @CC@
  21. CFLAGS =
  22. CPPFLAGS = -I../lib -I$(srcdir)/../lib -I../.. -I$(srcdir)/../..
  23.  
  24. CCLD = $(CC)
  25. LDFLAGS = $(CFLAGS) $(XLDFLAGS)
  26. LIBS = @LIBS@ $(extralibs)
  27. libs = $(commono) $(LIBS)
  28.  
  29. INSTALL = @INSTALL@
  30. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  31.  
  32.  
  33. .SUFFIXES:
  34. .SUFFIXES: .o .c .p .ch
  35. .p.c:
  36.     $(SHELL) $(srcdir)/../lib/convert $< $*.c $(srcdir)
  37. .ch.p:
  38.     ../web/tangle $(srcdir)/$*.web $<
  39.     cp $(srcdir)/$*.p $*.p
  40.     rm -f $(srcdir)/$*.p
  41. .c.o:
  42.     $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
  43.  
  44.  
  45. default: all
  46. all: $(program)
  47. triptrap: dvitype
  48.  
  49.  
  50. dvicopy: dvicopy.o $(commono)
  51.     $(CCLD) -o dvicopy $(LDFLAGS) dvicopy.o $(libs)
  52. dvicopy.o: dvicopy.c $(commonh)
  53. dvicopy.c: dvicopy.p $(commondefines)
  54. dvicopy.p: dvicopy.web dvicopy.ch
  55.  
  56.  
  57. dvitype: dvitype.o $(commono)
  58.     $(CCLD) -o dvitype $(LDFLAGS) dvitype.o $(libs)
  59. dvitype.o: dvitype.c $(commonh)
  60. dvitype.c: dvitype.p $(commondefines)
  61. dvitype.p: dvitype.web dvitype.ch
  62.  
  63.  
  64. Makefile: Makefile.in ../config.status
  65.     (cd ..; sh config.status)
  66.  
  67.  
  68. c-sources: dvicopy.c dvitype.c
  69. .PHONY: c-sources
  70.  
  71. install install-exec: all
  72.     for p in $(program); do $(INSTALL_PROGRAM) $$p $(bindir)/$$p; done
  73. install-data:
  74.  
  75.  
  76. TAGS: *.c *.h
  77.     etags -t *.c *.h
  78.  
  79.  
  80. mostlyclean::
  81.     rm -f *.o $(program) $(lib) $(programs)
  82.  
  83. clean:: mostlyclean
  84.     rm -f *.dvi *.pool
  85.  
  86. distclean:: clean
  87.     rm -f Makefile config.status c-auto.h
  88.  
  89. # Although we can remake configure and c-auto.h.in, we don't remove
  90. # them, since many people may lack Autoconf.  Use configclean for that.
  91. realclean:: distclean
  92.     rm -f TAGS *.info*
  93.  
  94. extraclean::
  95.     rm -f *.aux *.bak *.bbl *.blg *.dvi *.log *.orig *.pl *.rej
  96.     rm -f *.i *.s *.tfm *.vf *.vpl *\#* *gf *pk *~
  97.     rm -f CONTENTS.tex a.out core mfput.* patch* texput.*
  98.  
  99. configclean:
  100.     rm -f configure c-auto.h.in c-auto.h
  101.  
  102.  
  103. # Prevent GNU make 3 from overflowing arg limit on system V.
  104. .NOEXPORT:
  105.  
  106. clean::
  107.     rm -f *.p *.c *.h
  108.