1# @(#)Makefile 2.6 06/10/85 2# 3CFLAGS = -DINCORE 4#CFLAGS = -DINCORE -g 5CC = cc $(CFLAGS) 6.c.o: 7 $(CC) -c $*.c 8 9INVo = invert.o streams.o makekey.o 10INVc = invert.c streams.c makekey.c 11LOOKo = lookup.o locate.o alpha.seek.o streams.o makekey.o 12LOOKc = lookup.c locate.c alpha.seek.c streams.c makekey.c 13NEWBIBo = newbib.o newbibargs.o locate.o alpha.seek.o streams.o makekey.o 14BIBo = bib.o bibargs.o locate.o alpha.seek.o streams.o makekey.o 15BIBc = bib.c bibargs.c locate.c alpha.seek.c streams.c makekey.c 16LISTo = listrefs.o bibargs.o streams.o makekey.o 17NEWLISTo = listrefs.o newbibargs.o streams.o makekey.o 18LISTc = listrefs.c bibargs.c streams.c makekey.c 19 20SRCS = \ 21 bib.c \ 22 bibargs.c \ 23 alpha.seek.c \ 24 bib.h \ 25 invert.c \ 26 listrefs.c \ 27 locate.c \ 28 lookup.c \ 29 makekey.c \ 30 streams.c \ 31 streams.h 32 33all: invert lookup listrefs bib 34 35install: all 36 install -s -c invert $(DESTDIR)/usr/new/invert 37 install -s -c lookup $(DESTDIR)/usr/new/lookup 38 install -s -c listrefs $(DESTDIR)/usr/new/listrefs 39 install -s -c bib $(DESTDIR)/usr/new/bib 40 41invert: $(INVo) 42 $(CC) $(INVo) -o invert 43 44invert.lint: $(INVc) bib.h streams.h 45 lint $(INVc) >invert.lint 46 47lookup: $(LOOKo) 48 $(CC) $(LOOKo) -o lookup 49 50lookup.lint: $(LOOKc) bib.h streams.h 51 lint $(LOOKc) >lookup.lint 52 53bib: $(BIBo) 54 $(CC) $(BIBo) -o bib 55 56bib.lint: $(BIBc) bib.h streams.h 57 lint $(BIBc) >bib.lint 58 59listrefs: $(LISTo) 60 $(CC) $(LISTo) -o listrefs 61 62newlisttrefs: $(NEWLISTo) 63 $(CC) $(NEWLISTo) -o newlistrefs 64 65bib.o: bib.h 66bibargs.o: bib.h 67listrefs.o: bib.h 68invert.o: streams.h bib.h 69 70locate.o: streams.h bib.h 71makekey.o: bib.h 72alpha.seek.o: streams.h 73streams.o: streams.h 74 75$(SRCS) : 76 sccs get $@ 77 78bibdoc: 79 tbl doc/bibdoc.ms | vtroff -ms 80 vtroff -man doc/invert.man 81 vtroff -man doc/bib.man 82 83doc/INDEX: doc/testrefs 84 cd doc; invert -p INDEX testrefs 85 86styleman: 87 sed -e 's/STYLE/stdn - standard numeric/' tstyles | bib -tstdn >show.stdn 88 sed -e 's/STYLE/stdsn - standard sorted numeric/' tstyles | bib -tstdsn >show.stdsn 89 sed -e 's/STYLE/stda - standard alphabetic/' tstyles | bib -tstda >show.stda 90 sed -e 's/STYLE/opena - open alphabetic/' tstyles | bib -topena >show.opena 91 sed -e 's/STYLE/openn - open numeric/' tstyles | bib -topenn >show.openn 92 sed -e 's/STYLE/astro - astrophysical journal style/' tstyles | bib -tastro >show.astro 93 sed -e 's/STYLE/hnf - Hanson Normal Form/' tstyles | bib -thnf >show.hnf 94 sed -e 's/STYLE/list - listrefs default/' tstyles | bib -tlist >show.list 95 sed -e 's/STYLE/spe - S P and E Journal style/' tstyles | bib -tspe2 >show.spe 96 sed -e 's/STYLE/supn - superscripted numeric style/' tstyles | bib -tsupn >show.supn 97 sed -e 's/STYLE/foot - footnoted citations/' tstyles | bib -tfoot >show.foot 98 vtroff -ms styletop show.* 99 100clean: 101 -rm -f *.o bib invert listrefs lookup tags 102