RST_TARGETS=$(shell for file in *.rst; do echo $${file%.rst}.gen.pdf; done) all: $(RST_TARGETS) showtargets: echo $(RST_TARGETS) clean: rm -f *.gen.* *~ .PRECIOUS: %.gen.latex %.gen.dvi %.gen.pdf: %.gen.latex pdflatex $*.gen.latex BIBINPUTS=..:$$BIBINPUTS bibtex $*.gen pdflatex $*.gen.latex pdflatex $*.gen.latex %.gen.dvi: %.gen.latex latex $< BIBINPUTS=..:$$BIBINPUTS bibtex $*.gen latex $< latex $< %.gen.ps: %.gen.dvi dvips $< -o $@ %.gen.latex: %.rst docutils.conf Makefile $(MAKE) -C ../../navidoc latex RST="../journals/plans/$<" %.gen.html: %.rst docutils.conf Makefile $(MAKE) -C ../../navidoc html RST="../journals/plans/$<"