From d34fadd78b268358c9fb912ab2a2fbc246491e9b Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 31 Mar 2016 22:31:39 +0200 Subject: build: throw error on missing deps for fbpdf --- GNUmakefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index db46f2e..7b54373 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -195,7 +195,15 @@ PKGS_FBPDF := libdrm poppler-glib gbm epoxy cairo-gl fbpdf : CFLAGS += $(shell $(PKG_CONFIG) --cflags $(PKGS_FBPDF)) fbpdf : LDLIBS += $(shell $(PKG_CONFIG) --libs $(PKGS_FBPDF)) +ifeq ($(shell $(PKG_CONFIG) $(PKGS_FBPDF) && echo ok),ok) fbpdf: $(OBJS_FBPDF) +else +.PHONY: fbpdf +fbpdf: + @echo "Build dependencies missing for fbpdf" + @echo "needed: $(PKGS_FBPDF)" + false +endif ######################################################################## -- cgit