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