[FE training-materials-updates] Makefile: add support for having pre-generated PDF pictures
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Tue Apr 7 16:37:22 CEST 2015
Repository : git://git.free-electrons.com/training-materials.git
On branch : master
Link : http://git.free-electrons.com/training-materials/commit/?id=8d980f0782079d85d68029879235d4e965ce29e8
>---------------------------------------------------------------
commit 8d980f0782079d85d68029879235d4e965ce29e8
Author: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Date: Tue Apr 7 16:34:40 2015 +0200
Makefile: add support for having pre-generated PDF pictures
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
>---------------------------------------------------------------
8d980f0782079d85d68029879235d4e965ce29e8
Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 74b3cc8..f1b96e3 100644
--- a/Makefile
+++ b/Makefile
@@ -415,7 +415,8 @@ PICTURES = \
$(call PICTURES_WITH_TRANSFORMATION,$(1),svg) \
$(call PICTURES_WITH_TRANSFORMATION,$(1),dia) \
$(call PICTURES_NO_TRANSFORMATION,$(1),png) \
- $(call PICTURES_NO_TRANSFORMATION,$(1),jpg)
+ $(call PICTURES_NO_TRANSFORMATION,$(1),jpg) \
+ $(call PICTURES_NO_TRANSFORMATION,$(1),pdf)
# List of common pictures
COMMON_PICTURES = $(call PICTURES,common)
@@ -613,6 +614,10 @@ $(OUTDIR)/%.jpg: %.jpg
mkdir -p $(dir $@)
@cp $^ $@
+$(OUTDIR)/%.pdf: %.pdf
+ mkdir -p $(dir $@)
+ @cp $^ $@
+
#
# === Misc targets ===
#
More information about the training-materials-updates
mailing list