From 557e882d52e39c84a3e25e23182ee762bad0e3fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Sat, 17 Feb 2024 18:02:12 +0500 Subject: [PATCH] Improve Makefile. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2c428de..9cf3303 100644 --- a/Makefile +++ b/Makefile @@ -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: