Rogue: Savage Rats, a retro-themed dungeon crawler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rogue-savage-rats/build/Makefile

32 lines
434 B

STUB = ./stub.jar
IN_DIR = ./in
IN = $(IN_DIR)/build.jar
OUT_DIR = ./out
OUT = $(OUT_DIR)/release.jar
TMP_DIR = ./tmp
all:
# clean
mkdir -p $(TMP_DIR)
mkdir -p $(OUT_DIR)
# extract
unzip $(IN) -d $(TMP_DIR)
rm -rf $(TMP_DIR)/META-INF
unzip $(STUB) -d $(TMP_DIR)
# export
(cd $(TMP_DIR); zip -r9 ./pack.zip .)
mv -f $(TMP_DIR)/pack.zip $(OUT)
chmod +x $(OUT)
# clean
rm -rf $(TMP_DIR)
run:
java -jar $(OUT)