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.
|
|
|
STUB = ./stub.jar
|
|
|
|
|
|
|
|
IN_DIR = ./in
|
|
|
|
IN = $(IN_DIR)/build.jar
|
|
|
|
|
|
|
|
OUT_DIR = ./out
|
|
|
|
OUT = $(OUT_DIR)/release.jar
|
|
|
|
|
|
|
|
TMP_DIR = ./tmp
|
|
|
|
|
|
|
|
all: $(OUT)
|
|
|
|
|
|
|
|
$(OUT): $(IN) $(STUB)
|
|
|
|
# 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)
|
|
|
|
|
|
|
|
find $(TMP_DIR) -name "*.xcf" -type f -delete
|
|
|
|
|
|
|
|
# export
|
|
|
|
(cd $(TMP_DIR); zip -r9 ./pack.zip .)
|
|
|
|
mv -f $(TMP_DIR)/pack.zip $(OUT)
|
|
|
|
chmod +x $(OUT)
|
|
|
|
|
|
|
|
# clean
|
|
|
|
rm -rf $(TMP_DIR)
|
|
|
|
|
|
|
|
|
|
|
|
run: $(OUT)
|
|
|
|
java -jar $(OUT) -w ../.rogue-save
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(OUT)
|
|
|
|
|
|
|
|
deploy: $(OUT)
|
|
|
|
cp -f $(OUT) /home/ondra/Dokumenty/Dropbox/Public/Rogue
|