Skip to content

Commit

Permalink
add make scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
catriverr committed Sep 8, 2024
1 parent f8ec32f commit 2ae0e39
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions make/buildcheck.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
HAS_NCURSES := $(shell pkg-config --exists ncurses && echo yes || echo no)
HAS_PKG_CONFIG := $(shell command -v pkg-config >/dev/null 2>&1 && echo yes || echo no)

# Check for ncurses if pkg-config is available
ifeq ($(HAS_PKG_CONFIG),yes)
HAS_NCURSES := $(shell pkg-config --exists ncurses && echo yes || echo no)
else
HAS_NCURSES := no
endif

0 comments on commit 2ae0e39

Please sign in to comment.