make/golf/if-pkgconfig-exists (225 bytes)
1 # example with ncursesw like mtm or dvtm 2 CURSESLIB ?= <++> 3 LIBS ?= -l$(CURSESLIB) -lutil 4 5 ifeq ("$(shell basename $(shell command -v pkg-config))", "pkg-config") 6 LIBS := $(shell pkg-config --libs $(CURSESLIB)) 7 endif