aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Linskey2026-06-11 04:59:56 -0400
committerBenjamin Linskey2026-06-11 04:59:56 -0400
commitb590db5be667f293de60d9abd3fa870fdd05fb4a (patch)
tree9c75665cfbb5c532d1bc973740882baab7a3cc51
parent69159c90af7a403467282e557458494cc9993e96 (diff)
downloadrogue-b590db5be667f293de60d9abd3fa870fdd05fb4a.tar.gz

Fix non-portable invocation of basename

POSIX basename (and OpenBSD’s implementation) only accepts a single pathname argument, not a list.

-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index af24289..2130667 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ CFLAGS = -std=c99 -O2 -Wall -Wextra -Wpedantic
CPPFLAGS = -DUNIX -DUNIX_SYSV
LDLIBS = -lcurses
-SRCS != find . -name '*.c' -exec basename {} +
+SRCS != find . -name '*.c' -exec basename {} \;
OBJS != echo $(SRCS) | awk '{gsub(/\.c/, ".o"); print}'
HEADERS != find . -name '*.h' -exec basename {} +