Improve Makefile.
This commit is contained in:
parent
2e452c71a4
commit
557e882d52
4
Makefile
4
Makefile
@ -15,7 +15,7 @@ CLS := $(SRCS:$(SRC_DIR)/%.java=$(OUT_DIR)/%.class)
|
|||||||
|
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
|
|
||||||
all: $(CLS)
|
all: pack
|
||||||
|
|
||||||
$(CLS): $(OUT_DIR)/%.class: $(SRC_DIR)/%.java
|
$(CLS): $(OUT_DIR)/%.class: $(SRC_DIR)/%.java
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
@ -25,7 +25,7 @@ clean:
|
|||||||
rm -rf build/
|
rm -rf build/
|
||||||
rm -f result.jar
|
rm -f result.jar
|
||||||
|
|
||||||
pack:
|
pack result.jar: $(CLS)
|
||||||
jar -cmf META-INF/MANIFEST.MF result.jar -C build . -C res .
|
jar -cmf META-INF/MANIFEST.MF result.jar -C build . -C res .
|
||||||
|
|
||||||
run:
|
run:
|
||||||
|
Loading…
Reference in New Issue
Block a user