From c6f54d93588827c0814773f088ad8e78c089f8b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Sun, 26 May 2024 08:11:15 +0500 Subject: [PATCH] Make so that Makefile finds .kt files at any subdirectory nesting. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0b6f074..b796c98 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,9 @@ SRC_DIR := src RES_DIR := res -SRCS := $(wildcard $(SRC_DIR)/*/*.kt) +rwildcard=$(wildcard $1$2) $(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2)) + +SRCS := $(call rwildcard,$(SRC_DIR),*.kt) CLASSNAME := com.Hello