Système générique de compilation pour Beamer.
This commit is contained in:
25
Makefile.common
Normal file
25
Makefile.common
Normal file
@@ -0,0 +1,25 @@
|
||||
.PHONY: all
|
||||
|
||||
PATCHES := $(wildcard *.patch)
|
||||
SOURCES := build/$(SOURCE) $(patsubst %.patch,build/%.tex,$(PATCHES))
|
||||
DOCUMENTS := \
|
||||
$(patsubst build/%.tex,build/%.pdf,$(SOURCES)) \
|
||||
$(patsubst build/%.tex,build/%_notes.pdf,$(SOURCES))
|
||||
|
||||
all: $(DOCUMENTS)
|
||||
|
||||
build:
|
||||
mkdir build
|
||||
|
||||
build/%.tex: %.patch build
|
||||
cp $(SOURCE) $@
|
||||
patch $@ $<
|
||||
|
||||
build/%.tex: %.tex build
|
||||
cp $< $@
|
||||
|
||||
build/%_notes.tex: build/%.tex
|
||||
cat $< | sed -e 's/{hide notes}/{show notes on second screen}/' > $@
|
||||
|
||||
build/%.pdf: build/%.tex
|
||||
pdflatex -output-directory build $<
|
||||
Reference in New Issue
Block a user