Produce a build-time error if the pkg-config packages aren't available.

This commit is contained in:
David Given
2019-12-13 22:34:24 +01:00
parent ad69c6bd27
commit 898e8c551c

View File

@@ -13,6 +13,12 @@ export LDFLAGS +=
export LIBS = -static -lz -lsqlite3 -lusb-1.0
export EXTENSION = .exe
else
packages-exist = $(shell pkg-config --exists $(PACKAGES))
ifneq ($(packages-exist), 0)
$(error You must install these packages with pkg-config: $(PACKAGES))
endif
export CXX = g++
export AR = ar rcs
export STRIP = strip