Improve Makefile.

This commit is contained in:
bʰedoh₂ swé 2024-02-17 18:02:12 +05:00
parent 2e452c71a4
commit 557e882d52

View File

@ -15,7 +15,7 @@ CLS := $(SRCS:$(SRC_DIR)/%.java=$(OUT_DIR)/%.class)
.PHONY: all clean
all: $(CLS)
all: pack
$(CLS): $(OUT_DIR)/%.class: $(SRC_DIR)/%.java
mkdir -p build
@ -25,7 +25,7 @@ clean:
rm -rf build/
rm -f result.jar
pack:
pack result.jar: $(CLS)
jar -cmf META-INF/MANIFEST.MF result.jar -C build . -C res .
run: