home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / tex / texsrc2 / Src / bibtex / Makefile.i < prev    next >
Makefile  |  1993-02-21  |  2KB  |  91 lines

  1. # This file makes BibTeX.
  2.  
  3. SHELL = /bin/sh
  4.  
  5. srcdir = @srcdir@
  6. VPATH = @srcdir@
  7.  
  8. # Routines used everywhere.
  9. commondefines=../$(srcdir)/lib/common.defines ../$(srcdir)/lib/texmf.defines
  10. commonh=../$(srcdir)/lib/common.h
  11. commono=../lib/lib.a
  12.  
  13. # Routines used in TeX, Metafont, and BibTeX.
  14. fileioc=../lib/openinout.c
  15. fileioo=openinout.o
  16.  
  17.  
  18. CC = @CC@
  19. CFLAGS = -g
  20. CPPFLAGS = -DBibTeX -I../$(srcdir)/lib
  21.  
  22. CCLD = $(CC)
  23. LDFLAGS = $(CFLAGS) $(XLDFLAGS)
  24. LIBS = @LIBS@ $(extralibs)
  25. libs = $(fileioo) $(commono) $(LIBS)
  26.  
  27. INSTALL = @INSTALL@
  28. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  29.  
  30. LN = @LN_S@
  31.  
  32.  
  33. .SUFFIXES:
  34. .SUFFIXES: .o .c .p .ch
  35. .p.c:
  36.     $(SHELL) ../$(srcdir)/bibtex/convert $*.p $*.c
  37. .ch.p:
  38.     ../web/tangle $*.web c$*.ch
  39. .c.o:
  40.     $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
  41.  
  42.  
  43. default: all
  44. all: bibtex
  45.  
  46.  
  47. bibtex: bibtex.o $(commono) $(fileioo)
  48.     $(CCLD) -o bibtex $(LDFLAGS) bibtex.o $(libs)
  49. bibtex.o: bibtex.c $(commonh)
  50. bibtex.c: bibtex.p $(commondefines) convert
  51. bibtex.p: bibtex.web cbibtex.ch
  52.  
  53. cbibtex.ch: bibtex.ch
  54.     rm -f $@
  55.     cp ../$(srcdir)/bibtex/bibtex.ch cbibtex.ch
  56.     chmod 444 cbibtex.ch
  57.  
  58. openinout.c: $(fileioc)
  59.     $(LN) $(fileioc) openinout.c
  60.  
  61.  
  62. Makefile: Makefile.in ../config.status
  63.     (cd ..; sh config.status)
  64.  
  65. # Prevent GNU make 3 from overflowing arg limit on system V.
  66. .NOEXPORT:
  67.  
  68.  
  69. c-sources: bibtex.c openinout.c
  70. .PHONY: c-sources
  71.  
  72. install install-exec: all
  73.     $(INSTALL_PROGRAM) bibtex $(bindir)/bibtex
  74. install-data:
  75.  
  76. mostlyclean:
  77.     rm -f *.pool *.o bibtex
  78.  
  79. clean: mostlyclean
  80.     rm -f bibtex.p bibtex.c bibtex.h coerce.h openinout.c
  81.  
  82. distclean: clean
  83.     rm -f cbibtex.ch Makefile
  84.  
  85. extraclean: distclean
  86.     rm -f *~ *\#* patch* *.orig *.rej *.bak *.ckp
  87.     rm -f *.dvi *.log *.aux *gf *pk *.tfm core a.out
  88.     rm -f *.blg *.bbl
  89.  
  90. realclean: distclean
  91.