From e780490cc155dafe456e9bfea448d14ecd428242 Mon Sep 17 00:00:00 2001 From: "sergey.s.betke" Date: Wed, 11 Jul 2018 11:44:53 +0300 Subject: [PATCH] =?UTF-8?q?*=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BC=D0=B0=D0=BA=D1=80=D0=BE=D1=81=20`OPENTARGETPDF`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ITG.MakeUtils/ghostscript.mk | 4 +++- ITG.MakeUtils/pdf.mk | 13 +++++++++++++ stamps/Makefile | 3 +++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 ITG.MakeUtils/pdf.mk diff --git a/ITG.MakeUtils/ghostscript.mk b/ITG.MakeUtils/ghostscript.mk index 11469e26..1adfb898 100644 --- a/ITG.MakeUtils/ghostscript.mk +++ b/ITG.MakeUtils/ghostscript.mk @@ -4,6 +4,8 @@ endif ifndef MAKE_GHOSTSCRIPT_DIR +include $(ITG_MAKEUTILS_DIR)pdf.mk + MAKE_GHOSTSCRIPT_DIR = $(ITG_MAKEUTILS_DIR) ifeq ($(OS),Windows_NT) @@ -101,7 +103,7 @@ $(OUTPUTDIR)%.pdf: $(SOURCESDIR)%.ps $(MAKETARGETDIR) $(GSPSTOPDFCMDLINE) -sOutputFile='$@' '$<' $(call writeinformation,File "$@" is ready.) - + $(OPENTARGETPDF) ifdef MAKE_TESTS_DIR diff --git a/ITG.MakeUtils/pdf.mk b/ITG.MakeUtils/pdf.mk new file mode 100644 index 00000000..0e1e8ca2 --- /dev/null +++ b/ITG.MakeUtils/pdf.mk @@ -0,0 +1,13 @@ +ifndef ITG_MAKEUTILS_LOADED +$(error 'ITG.MakeUtils/common.mk' must be included before any ITG.MakeUtils files.) +endif + +ifndef MAKE_PDF_DIR + +ifdef SHOW_PDF + OPENTARGETPDF = $@ +else + OPENTARGETPDF = +endif + +endif diff --git a/stamps/Makefile b/stamps/Makefile index f4031574..4c8df1df 100644 --- a/stamps/Makefile +++ b/stamps/Makefile @@ -7,6 +7,9 @@ all: pdf ROOT_PROJECT_DIR ?= ../ ITG_MAKEUTILS_DIR ?= $(ROOT_PROJECT_DIR)ITG.MakeUtils/ include $(ITG_MAKEUTILS_DIR)common.mk + +SHOW_PDF = yes + include $(ITG_MAKEUTILS_DIR)tests.mk include $(ITG_MAKEUTILS_DIR)ghostscript.mk include $(ITG_MAKEUTILS_DIR)appveyor.mk