Make it so Makefile finds .java files at any subdirecotory nesting.

This commit is contained in:
bʰedoh₂ swé 2024-05-26 08:18:26 +05:00
parent c265a4eed8
commit 06c8f278e9
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
env.mk
build/
result.jar

View File

@ -7,7 +7,9 @@ SRC_DIR := src
OUT_DIR := build
SRCS := $(wildcard $(SRC_DIR)/*/*.java)
rwildcard=$(wildcard $1$2) $(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2))
SRCS := $(call rwildcard,$(SRC_DIR),*.java)
CLS := $(SRCS:$(SRC_DIR)/%.java=$(OUT_DIR)/%.class)