From cbe9fcff0816cc367ad5a68a9263c08bfdd2d32c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Tue, 13 May 2014 01:04:36 +0200 Subject: [PATCH] More efficient makefile for export --- .gitignore | 1 + build/Makefile | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 511f030..53a8747 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /target/ /.rogue-save/ /build/.rogue-save/ +/build/out/.rogue-save/ /build/out/*.jar /build/in/*.jar *.log diff --git a/build/Makefile b/build/Makefile index 8ee896c..fa12864 100644 --- a/build/Makefile +++ b/build/Makefile @@ -8,7 +8,9 @@ OUT = $(OUT_DIR)/release.jar TMP_DIR = ./tmp -all: +all: $(OUT) + +$(OUT): $(IN) $(STUB) # clean mkdir -p $(TMP_DIR) mkdir -p $(OUT_DIR) @@ -27,6 +29,10 @@ all: # clean rm -rf $(TMP_DIR) + + +run: $(OUT) + java -jar $(OUT) -run: - java -jar $(OUT) \ No newline at end of file +deploy: $(OUT) + cp -f $(OUT) /home/ondra/Dokumenty/Dropbox/Public/Rogue