Browse Source

Reorganize makefile

remotes/origin/translate_notes
Alexandre Dupas 16 years ago
parent
commit
026c795c7b
  1. 7
      makefile

7
makefile

@ -54,11 +54,9 @@ endef
default: pdf default: pdf
ps: LATEX = latex
ps: $(PSF) ps: $(PSF)
gv $< gv $<
pdf: LATEX = pdflatex
pdf: $(PDF) pdf: $(PDF)
xpdf $< xpdf $<
@ -96,7 +94,6 @@ $(PSF): %.ps.gz: %.ps
$(PDF): LATEX = pdflatex $(PDF): LATEX = pdflatex
$(PDF): %.pdf: %.tex %.aux $(PDF): %.pdf: %.tex %.aux
$(LATEX) $<
%.aux: %.tex %.aux: %.tex
$(LATEX) $< $(LATEX) $<
@ -106,8 +103,8 @@ $(PDF): %.pdf: %.tex %.aux
%.d: %.tex %.d: %.tex
@$(get_dependencies) ; echo $< $@: $$deps > $@ @$(get_dependencies) ; echo $< $@: $$deps > $@
@$(get_inclusions) ; echo $(patsubst %.tex,%.pdf,$<) : $$incl >> $@ ; @$(get_inclusions) ; echo $(patsubst %.tex,%.pdf,$<) : $$incl >> $@ ; echo "\t"$$\(LATEX\) $< >> $@ ;
@$(get_prereq) ; echo $$prep : $(patsubst %.tex,%.aux,$<) >> $@ @$(get_prereq) ; echo $$prep : $(patsubst %.tex,%.aux,$<) >> $@ ;
include $(SOURCES:%.tex=%.d) include $(SOURCES:%.tex=%.d)

Loading…
Cancel
Save