Browse Source

Remove options to generate ps files and add a LATEX_OPIONS env variable

remotes/origin/translate_notes
Alexandre Dupas 15 years ago
parent
commit
8e29ce8ef9
  1. 21
      makefile

21
makefile

@ -19,7 +19,6 @@ SONGBOOKS := $(wildcard *.sb)
TARGETS = $(SONGBOOKS:%.sb=%) TARGETS = $(SONGBOOKS:%.sb=%)
PDF = $(TARGETS:%=%.pdf) PDF = $(TARGETS:%=%.pdf)
PSF = $(TARGETS:%=%.ps.gz)
CHORDS = chords.tex CHORDS = chords.tex
CHORDS_SRC = $(shell ls songs/*/*.sg) CHORDS_SRC = $(shell ls songs/*/*.sg)
@ -47,9 +46,6 @@ default: songbook.pdf
all: $(PDF) all: $(PDF)
ps: $(PSF)
gv $<
pdf: $(PDF) pdf: $(PDF)
xpdf $< xpdf $<
@ -58,28 +54,18 @@ lilypond: $(LILYFILE)
clean: clean:
@rm -f $(TARGETS:%=%.d) $(TARGETS:%=%.tex) $(TARGETS:%=%.aux) \ @rm -f $(TARGETS:%=%.d) $(TARGETS:%=%.tex) $(TARGETS:%=%.aux) \
$(TARGETS:%=%.toc) $(TARGETS:%=%.out) $(TARGETS:%=%.log) \ $(TARGETS:%=%.toc) $(TARGETS:%=%.out) $(TARGETS:%=%.log) \
$(TARGETS:%=%.nav) $(TARGETS:%=%.snm) $(TARGETS:%=%.dvi) $(TARGETS:%=%.nav) $(TARGETS:%=%.snm)
@rm -f *.sbx *.sxd @rm -f *.sbx *.sxd
cleanall: clean cleanall: clean
@rm -f $(PDF) $(PSF) @rm -f $(PDF)
@rm -f $(LILYFILE) @rm -f $(LILYFILE)
depend: depend:
############################################################ ############################################################
$(PSF): LATEX = latex $(PDF): LATEX = pdflatex $(LATEX_OPTIONS)
$(PSF): %.ps.gz: %.ps
gzip -f $<
%.ps: %.dvi
dvips -o $@ $<
%.dvi: %.tex %.aux
$(LATEX) $<
$(PDF): LATEX = pdflatex
$(PDF): %.pdf: %.tex %.aux $(PDF): %.pdf: %.tex %.aux
%.aux: %.tex %.aux: %.tex
@ -102,4 +88,3 @@ include $(SONGBOOKS:%.sb=%.d)
$(CHORDS): $(CHORDS_SRC) $(CHORDS): $(CHORDS_SRC)
$(MAKE_CHORDS) -o $@ $(MAKE_CHORDS) -o $@

Loading…
Cancel
Save