Skip to content

Commit

Permalink
Fix boolean logic in Makefile for ncurses detection
Browse files Browse the repository at this point in the history
- Corrected logical error in Makefile when checking for ncurses existence.

This change ensures the correct boolean output from pkg-config by replacing a
duplicate echo true statement with the correct echo false. This improves the
Makefile's reliability in detecting ncurses and is crucial for avoiding false
positives that could lead to build errors.
  • Loading branch information
horta committed Nov 7, 2024
1 parent 61a3783 commit 49adea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ifndef ($(OS))
endif

ifeq ($(PKG_CONFIG_FOUND),true)
CURSES_FOUND := $(shell pkg-config --exists ncurses && echo true || echo true)
CURSES_FOUND := $(shell pkg-config --exists ncurses && echo true || echo false)
CURSES_LIBS := $(shell pkg-config --libs ncurses)
else
CURSES_FOUND := false
Expand Down

0 comments on commit 49adea5

Please sign in to comment.