aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-03-31 22:31:39 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-03-31 22:31:39 +0200
commitd34fadd78b268358c9fb912ab2a2fbc246491e9b (patch)
treed62139c3fc2c7a735a9868aca15bf480f984575a /GNUmakefile
parent246d75de4d8fb514c7c9b3042bec03ffdf5ef268 (diff)
downloadfbida-d34fadd78b268358c9fb912ab2a2fbc246491e9b.tar.gz
build: throw error on missing deps for fbpdf
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile8
1 files changed, 8 insertions, 0 deletions
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
########################################################################