# ============================================================ # insert citations # ============================================================ insert.tmp: $(TEXT_LIST) $(BIBL_LIST) kref $(KREF_PARM) -t $(TEXT_LIST) -b $(BIBL_LIST) > $@ \ || rm $@ # ============================================================ # format the text with citations # ============================================================ format.tmp: insert.tmp kawk -f $(TEXT_FORM) insert.tmp > $@ \ || rm $@ # ============================================================ # sort the citation bibliography # ============================================================ sortbibl.log: insert.tmp kord < $(BIBL_SORT) usedbibl.tmp -O usedbibl.tmp > sortbibl.log # ============================================================ # format the citation bibliography # ============================================================ sortbibl.tmp: sortbibl.log kawk -f $(BIBL_FORM) usedbibl.tmp > $@ \ || rm $@ # ============================================================ # kroff the text only # ============================================================ justtext.tmp: format.tmp setup kroff -o $(PAGES) -M setup -T $(TERM) format.tmp > $@ \ || rm $@ # ============================================================ # kroff the text and bibliography # ============================================================ textbibl.tmp: format.tmp sortbibl.tmp setup kroff -o $(PAGES) -M setup -T $(TERM) format.tmp sortbibl.tmp > $@ \ || rm $@ # ============================================================ # make a double column version # ============================================================ C=7 lasertwo.tmp: textbibl.tmp -rm -f x?? hpl -nopr -lan -lm 15 -li 8 -lpr -kpr textbibl.tmp -o $@ -co $C ksedit -f $(SCRIPTS)/voweler.sed $@ split -1320 $@ ls -lt x?? > $@ # ============================================================ # check the notes and nested constructs # ============================================================ nested.log: noter -f $(TEXT_LIST) > $@ @echo "to process: vi +1 $@" # ============================================================ # check the spelling # ============================================================ spelling.log: cat $(TEXT_LIST) > krect.xrc echo "krect; > $@" > $@ # ============================================================ # check for unmatched citations # ============================================================ notfound.log: insert.tmp egrep "^\.mo [AN]" insert.tmp > $@ # # makefile.txt template # makefile.txt: @echo "making template $@" @echo "KREF_PARM= -a1 -u1 -s31" >> $@ @echo "TEXT_LIST= " >> $@ @echo "BIBL_LIST= " >> $@ @echo "BIBL_SORT= $$(SCRIPTS)/auttitle.krd" >> $@ @echo "BIBL_FORM= $$(SCRIPTS)/bibl1.kwk" >> $@ @echo "TEXT_FORM= $$(SCRIPTS)/turabian.kwk" >> $@