summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorManuel Traut <manut@linutronix.de>2011-01-21 14:32:07 +0100
committerManuel Traut <manut@linutronix.de>2011-01-21 14:32:07 +0100
commit0e7dbb844f65e70d096ee12f223ed5b792f3b9ba (patch)
treee4798c6c1819ac66de03d211a7147bbee9efe539 /Makefile
parent4eaadbd816e2f5f0717d789188e6086612262e73 (diff)
find and concat pdf files using pdfsam
Signed-off-by: Manuel Traut <manut@linutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1f8a1fc..caa4162 100644
--- a/Makefile
+++ b/Makefile
@@ -10,5 +10,15 @@ all clean::
pdf::
rm -rf pdf
- mkdir pdf
- find . -name *.pdf | xargs cp -t pdf/
+ mkdir -p pdf/pres
+ mkdir -p pdf/handout
+ mkdir -p pdf/hints
+ find . -name pres_*.pdf | xargs cp -t pdf/pres
+ find . -name hints_*.pdf | xargs cp -t pdf/hints
+ find . -name handout_*.pdf | xargs cp -t pdf/handout
+ cd pdf/pres && \
+ pdfsam-console -o `pwd`/../pres.pdf -d `pwd` concat
+ cd pdf/hints && \
+ pdfsam-console -o `pwd`/../hints.pdf -d `pwd` concat
+ cd pdf/handout && \
+ pdfsam-console -o `pwd`/../handout.pdf -d `pwd` concat