#CLRFLAGS = -todo TEXFILES = compression.tex PUNTEDFILES = linked.tex trees.tex AUXFILES = $(patsubst %.tex,%.aux,$(TEXFILES)) #OTHERFILES = clr.cls clr.sty clrmath.sty prologue.sty clrmac.sty clrtimes.sty windex.sty windex/windex-$(MACHTYPE) book.master biblio.tex OTHERFILES = clr.cls clrmac.sty clrtimes.sty book.master MACHTYPE = x86_64 # next line would be better testing for $(BASH) or the like, but # this seems not to work; make ignores variables like SHELL, BASH, etc.. # apparently... # Cliff: augment the next line if you want to default to clrs_bash, too CLR=clr .PHONY: windex default book bib index ps pdf view xdvi gv clean .PRECIOUS: %.dvi default: $(CLR) $(CLRFLAGS) book.dvi: $(TEXFILES) $(OTHERFILES) $(CLR) $(CLRFLAGS) book: $(CLR) $(CLRFLAGS) $(CLR) $(CLRFLAGS) $(CLR) $(CLRFLAGS) todo: $(CLR) -todoonly notodo: $(CLR) book-notodo: $(CLR) $(CLR) $(CLR) book.bbl: book.aux book.bib bibtex book bib: make book.bbl windex: windex/windex.c cd windex; make windex-$(MACHTYPE) windex/windex-$(MACHTYPE): windex/windex.c make windex-$(MACHTYPE) book.idx: $(CLR) $(CLRFLAGS) index.tex: book.idx windex/windex-$(MACHTYPE) windex/windex-$(MACHTYPE) book mv book.index index.tex index: make index.tex book.ps: book.dvi dvips book.dvi -o ps: make book.ps pdf: make book.pdf print: book.ps lpr book.ps xdvi: book.dvi xdvi book.dvi & view: book.ps ghostview book.ps & gv: book.ps gv book.ps & clean: /bin/rm -f *.toc *.aux *.*~ *.dvi *.log *.bbl *.blg *.idx *.ps *.pdf *.rev *.aux-save index.tex %: %.tex $(OTHERFILES) $(CLR) $(CLRFLAGS) $< %.dvi: %.tex $(OTHERFILES) $(CLR) $(CLRFLAGS) $* %.ps: %.dvi $(OTHERFILES) rm -f $*.ps; dvips -e 0 -M -f < $*.dvi > $*.pstemp; psselect 1: $*.pstemp $*.ps; rm -f $*.pstemp %.pdf: %.ps $(OTHERFILES) rm -f $*.pdf; ps2pdf $*.ps $*.pdf %.psf: $(CLR) $(CLRFLAGS) $*; rm -f $*.ps; dvips -e 0 -M -f < $*.dvi > $*.pstemp; psselect 1: $*.pstemp $*.ps; rm -f $*.pstemp clrs.aux: fmatter.aux \ toc.aux \ $(AUXFILES) \ biblio.aux \ index.aux cat $^ | grep '\\newlabel' > clrs.aux count: wc $(TEXFILES)