From 52572a431b9b11065dccf47a6d734a76e8761f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 4 Jan 2021 12:55:00 +0200 Subject: [PATCH] add bundle --- II/Referatas/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/II/Referatas/Makefile b/II/Referatas/Makefile index 97ed4ce..f901c93 100644 --- a/II/Referatas/Makefile +++ b/II/Referatas/Makefile @@ -21,6 +21,15 @@ GEN3 = $(addsuffix .pdf, \ .PHONY: all all: mj-referatas.pdf mj-prezentacija.pdf +mj-referatas-bundle.pdf: mj-referatas.pdf $(shell git ls-files | grep -v Makefile) + cp $< .tmp-$@ + for f in $^; do \ + if [ "$$f" = "$<" ]; then continue; fi; \ + pdfattach .tmp-$@ $$f .tmp2-$@; \ + mv .tmp2-$@ .tmp-$@; \ + done + mv .tmp-$@ $@ + mj-referatas.pdf: mj-referatas.tex version.tex bib.bib zeimena.pdf zeimena-pretty.pdf \ sinewave1.pdf sinewave2.pdf crossing.pdf $(GEN1) $(GEN2) $(GEN3) latexmk -shell-escape -g -pdf $<