Make it so Makefile finds .java files at any subdirecotory nesting.
This commit is contained in:
parent
c265a4eed8
commit
06c8f278e9
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
env.mk
|
env.mk
|
||||||
build/
|
build/
|
||||||
|
result.jar
|
||||||
|
4
Makefile
4
Makefile
@ -7,7 +7,9 @@ SRC_DIR := src
|
|||||||
|
|
||||||
OUT_DIR := build
|
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)
|
CLS := $(SRCS:$(SRC_DIR)/%.java=$(OUT_DIR)/%.class)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user