build: don't screw up when there's no gutenprint header.

This commit is contained in:
Solomon Peachy 2020-02-17 19:48:37 -05:00
parent 976fc628d6
commit e7407f0675
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ endif
# Figure out what the backend name needs to be
ifeq ($(NO_GUTENPRINT),)
GUTENPRINT_INCLUDE := $(shell pkg-config --variable=includedir gutenprint)/gutenprint
ifneq (,$(GUTENPRINT_INCLUDE))
ifneq (/gutenprint,$(GUTENPRINT_INCLUDE))
GUTENPRINT_MAJOR := $(shell grep 'define STP_MAJOR' $(GUTENPRINT_INCLUDE)/gutenprint-version.h | tr -d '()\t' | cut -c33- )
GUTENPRINT_MINOR := $(shell grep 'define STP_MINOR' $(GUTENPRINT_INCLUDE)/gutenprint-version.h | tr -d '()\t' | cut -c33- )
BACKEND_NAME ?= gutenprint$(GUTENPRINT_MAJOR)$(GUTENPRINT_MINOR)+usb