Skip to content
This repository has been archived by the owner on Jul 26, 2021. It is now read-only.

Commit

Permalink
* добавлен макрос OPENTARGETPDF
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-s-betke committed Jul 11, 2018
1 parent 980d4e1 commit e780490
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ITG.MakeUtils/ghostscript.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -101,7 +103,7 @@ $(OUTPUTDIR)%.pdf: $(SOURCESDIR)%.ps
$(MAKETARGETDIR)
$(GSPSTOPDFCMDLINE) -sOutputFile='$@' '$<'
$(call writeinformation,File "$@" is ready.)

$(OPENTARGETPDF)

ifdef MAKE_TESTS_DIR

Expand Down
13 changes: 13 additions & 0 deletions ITG.MakeUtils/pdf.mk
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions stamps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e780490

Please sign in to comment.