You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
828 B
Makefile

NAME=closos
TEXFILES=$(NAME).tex $(shell ./tex-dependencies $(NAME).tex)
BIBFILES=$(NAME).bib
PDF_T=$(shell ./strip-dependence inputfig $(TEXFILES))
VERBATIM=$(shell ./strip-dependence verbatimtabinput $(TEXFILES))
CODEFILES=$(shell ./strip-dependence inputcode $(TEXFILES))
PDF=$(subst .pdf_t,.pdf,$(PDF_T))
all : $(NAME).pdf
%.pdf: %.fig
fig2dev -Lpdftex -m 0.75 $< $@
%.pdf_t: %.fig %.pdf
fig2dev -Lpdftex_t -m 0.75 -p $(basename $<).pdf $< $@
%.code: %.lisp
./codify $<
$(NAME).pdf: $(TEXFILES) $(PDF) $(PDF_T) $(VERBATIM) $(CODEFILES) $(BIBFILES)
pdflatex $<
makeindex $(NAME)
bibtex $(NAME)
pdflatex $<
pdflatex $<
view: $(NAME).pdf
xpdf $<
clean:
rm -f *.aux *.log *~ *.pdf *.pdf *.pdf_t *.bbl *.blg
spotless: clean
rm -f *.ps *.dvi *.pdf *.pdf_t *.toc *.idx *.ilg *.ind *.fig.bak
rm -f *.cb *.cb2