mirror of
https://github.com/newtype256/esgi-devops.git
synced 2025-06-02 10:06:24 +02:00
19 lines
494 B
Makefile
19 lines
494 B
Makefile
SLIDES := $(patsubst %.md,%.md.slides.pdf,$(wildcard *.md))
|
|
HANDOUTS := $(patsubst %.md,%.md.handout.pdf,$(wildcard *.md))
|
|
|
|
all : $(SLIDES) $(HANDOUTS)
|
|
|
|
%.md.slides.pdf : %.md
|
|
pandoc $^ -t beamer --slide-level 2 -o $@
|
|
|
|
%.md.handout.pdf : %.md
|
|
pandoc $^ -t beamer --slide-level 2 -V handout -o $@
|
|
pdfjam $@ --nup 1x2 --no-landscape --keepinfo \
|
|
--paper letterpaper --frame true --scale 0.9 \
|
|
--suffix "nup"
|
|
mv $*.md.handout-nup.pdf $@
|
|
|
|
|
|
clobber :
|
|
rm -f $(SLIDES)
|
|
rm -f $(HANDOUTS)
|