From 158f8ef180d4ea448b351599529db53ff5e88f8c Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Wed, 19 Jul 2017 20:24:40 +0200 Subject: Starting a Java implementation of ast-to-instr. Keeping things clean, this time. --- ast-to-instr/Makefile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 ast-to-instr/Makefile (limited to 'ast-to-instr/Makefile') diff --git a/ast-to-instr/Makefile b/ast-to-instr/Makefile new file mode 100644 index 0000000..59bc9bb --- /dev/null +++ b/ast-to-instr/Makefile @@ -0,0 +1,34 @@ +INPUT_FILE = ../data/ast/*.xml + +## Executables ################################################################# +JAVAC = javac +JAVA = java +DOWNLOADER = wget + +## Java Config ################################################################# +CLASSPATH = "./src/" + +## Dependencies ################################################################ +JAR_SOURCE = https://noot-noot.org/onera_2017/jar/ +REQUIRED_JARS = + +## Makefile Magic ############################################################## +SOURCES = $(wildcard src/*.java) +CLASSES = $(SOURCES:.java=.class) + +## Makefile Rules ############################################################## + +all: $(CLASSES) + +clean: + rm -f $(CLASSES) + +run: $(CLASSES) $(REQUIRED_JARS) + $(JAVA) -cp $(CLASSPATH) Main $(INPUT_FILE) + +%.class: %.java $(REQUIRED_JARS) + $(JAVAC) -cp $(CLASSPATH) $< + +%.jar: + echo "Attempting to download missing jar '$@'" + $(DOWNLOADER) "$(JAR_SOURCE)/$@" -- cgit v1.2.3-70-g09d2