add a ground to labyrinth

This commit is contained in:
philippe lhardy
2018-03-04 18:53:42 +01:00
parent 4b324fc2f4
commit 8f1b6afee5
2 changed files with 11 additions and 5 deletions

View File

@@ -1,21 +1,24 @@
PACKAGE=org.artisanlogiciel.games
PACKAGE_DIR=$(subst .,/,$(PACKAGE))
OUT=out
# maps with ant build.xml
OUT=../build
# external libraries
LIBS=../libs/artgaphics-0.1.0.jar
EDITOR=emacs
$(OUT):
mkdir -p $(OUT)
echo "[ERROR] Missing $(OUT)"
# mkdir -p $(OUT)
clean:
@find $(PACKAGE_DIR) -name "*.class" -type f -print0|xargs -0 rm 2>/dev/null && echo "cleaned classes in source"
@find $(OUT) -name "*.class" -type f -print0|xargs -0 rm 2>/dev/null || echo "nothing to clean"
test:
javac -cp $(LIBS) -d $(OUT) $(PACKAGE_DIR)/LabyModel.java
javac -cp $(LIBS) -d $(OUT) $(PACKAGE_DIR)/Main.java
java -cp $(OUT) $(PACKAGE).Main
echo "$(pwd)/$(PACKAGE_DIR)"
javac -sourcepath . -cp $(LIBS) -d $(OUT) $(PACKAGE_DIR)/LabyModel.java
javac -sourcepath . -cp $(LIBS) -d $(OUT) $(PACKAGE_DIR)/Main.java
java -cp $(OUT):$(LIBS):../lang $(PACKAGE).Main
run/%: $(OUT)