mirror of
https://github.com/Interlisp/maiko.git
synced 2026-03-13 05:30:57 +00:00
21 lines
676 B
Plaintext
21 lines
676 B
Plaintext
# Check that pkg-config is available and that the libbsd-dev package is installed
|
|
# If one of these is missing, error out
|
|
# FGH 2026-03-08
|
|
ifneq ($(MAKECMDGOALS),clean)
|
|
ifneq ($(MAKECMDGOALS),cleanup)
|
|
|
|
CHK_PKG_CONFIG := $(shell command -v pkg-config)
|
|
ifeq ($(CHK_PKG_CONFIG),)
|
|
# pkg-config not found, print an error
|
|
$(error "pkg-config not found. Please install it to build this project.")
|
|
endif
|
|
|
|
CHK_LIBBSD_DEV := $(shell pkg-config --exists libbsd-overlay && echo true)
|
|
ifneq ($(CHK_LIBBSD_DEV),true)
|
|
$(error "libbsd-dev (or libbsd-devel) package not found. Please install it to build this project.")
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
|