From b0bec174101a550e686e5a04521f9b9449bf8068 Mon Sep 17 00:00:00 2001 From: billy4479 <54800905+billy4479@users.noreply.github.com> Date: Thu, 31 Mar 2022 00:55:06 +0000 Subject: [PATCH] Remove find dependency in Makefile (#164) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 724a5e0..2675cfa 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ BUILD_DIR = ./build SRC_DIRS = ./src ./cli INC_DIRS = ./src/include -SRCS := $(shell find $(SRC_DIRS) -maxdepth 1 -name *.c) +SRCS := $(foreach DIR,$(SRC_DIRS),$(wildcard $(DIR)/*.c)) OBJS := $(SRCS:.c=.o) DEPS := $(OBJS:.o=.d)