From 76f8e69ba701b65a1bac32ba84e20c02a9cab9e5 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 21 Mar 2020 09:37:16 +0100 Subject: [PATCH] Add rule for page2img Signed-off-by: Stefan Weil --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index fe9564d3..2252979b 100644 --- a/Makefile +++ b/Makefile @@ -134,6 +134,15 @@ $(BIN)/ocrd: core multirule = $(patsubst $(BIN)/%,\%/%,$(1)) +ifneq ($(findstring format-converters, $(OCRD_MODULES)),) +OCRD_EXECUTABLES += $(PAGE2IMG) +PAGE2IMG := $(BIN)/page2img +$(PAGE2IMG): format-converters/page2img.py + $(PIP) install validators + echo "#!$(BIN)/python3" | cat - $< >$@ + chmod +x $@ +endif + ifneq ($(findstring opencv-python, $(OCRD_MODULES)),) CUSTOM_DEPS += cmake gcc g++ # libavcodec-dev libavformat-dev libswscale-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev