[bootlin/training-materials updates] master: Makefile: copy .tex files to output directory (c0d86ca8)
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Wed Jan 29 15:21:11 CET 2020
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/c0d86ca8e36a86fe5303235a2a43d5e750125f52
>---------------------------------------------------------------
commit c0d86ca8e36a86fe5303235a2a43d5e750125f52
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date: Wed Jan 29 15:21:11 2020 +0100
Makefile: copy .tex files to output directory
This will allow to sed them depending on the selected training
session.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
>---------------------------------------------------------------
c0d86ca8e36a86fe5303235a2a43d5e750125f52
Makefile | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 79e43e1d..8768f9c6 100644
--- a/Makefile
+++ b/Makefile
@@ -177,9 +177,8 @@ LABS_PICTURES = $(call PICTURES,$(foreach s,$(LABS_CHAPTERS),labs/$(s))) $(COMMO
rm -f $(OUTDIR)/$(basename $@).tex
echo "\input{$(VARS)}" >> $(OUTDIR)/$(basename $@).tex
for f in $(filter %.tex,$^) ; do \
- echo -n "\input{../" >> $(OUTDIR)/$(basename $@).tex ; \
- echo -n $$f | sed 's%\.tex%%' >> $(OUTDIR)/$(basename $@).tex ; \
- echo "}" >> $(OUTDIR)/$(basename $@).tex ; \
+ cp $$f $(OUTDIR)/`basename $$f` ; \
+ printf "\input{%s}\n" `basename $$f .tex` >> $(OUTDIR)/$(basename $@).tex ; \
done
(cd $(OUTDIR); $(PDFLATEX_ENV) $(PDFLATEX) $(basename $@).tex)
# The second call to pdflatex is to be sure that we have a correct table of
More information about the training-materials-updates
mailing list