From 04483e8e641eafd92b4f2c03b516fa1c29db3bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael?= <40151420+ldericher@users.noreply.github.com> Date: Sat, 12 Oct 2024 15:14:56 +0200 Subject: [PATCH] pdf making tool --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2d4aaf5 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +%_Both.pdf: %_Cu.pdf %_Mask.pdf + pdftk ${^} cat output ${@} + +%_90.pdf: %_Both.pdf + pdftk ${<} cat 1-endeast output ${@} + +%_90.ps: %_90.pdf + pdftops $< + +%_nup.ps: %_90.ps + psnup -pa4 -Pa5 -2 ${<} ${@} + +%_nup.pdf: %_nup.ps + ps2pdf ${<} + +%.pdf: %_nup.pdf + cp ${<} ${@} +