-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
21 lines (14 loc) · 981 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Path to BIMserver jars
BIMSERVER_PATH = unmanaged_libs/
BIMSERVER_JARS = "$(BIMSERVER_PATH)org.eclipse.emf.common_2.9.1.v20130827-0309.jar:$(BIMSERVER_PATH)org.eclipse.emf_2.6.0.v20130902-0605.jar:$(BIMSERVER_PATH)org.eclipse.emf.ecore_2.9.1.v20130827-0309.jar:$(BIMSERVER_PATH)bimserver-1.4.0-FINAL-2015-11-04-shared.jar:$(BIMSERVER_PATH)bimserver-1.4.0-FINAL-2015-11-04.jar:$(BIMSERVER_PATH)commons-io-1.4.jar:$(BIMSERVER_PATH)guava-18.0.jar:$(BIMSERVER_PATH)slf4j-api-1.6.2.jar"
BIMserver-query-plugin-shell.jar: src/main/java/nz/ac/auckland/cs/*.java
mkdir -p built
javac -classpath "$(BIMSERVER_JARS)" -sourcepath ./src/main/java -d built src/main/java/nz/ac/auckland/cs/*.java
cp -R plugin built
cd built && jar cf BIMserver-query-plugin-shell.jar * && cd ..
mv built/BIMserver-query-plugin-shell.jar BIMserver-query-plugin-shell.jar
all: BIMserver-query-plugin-shell.jar
clean:
rm -rf built BIMserver-query-plugin-shell.jar
.DEFAULT_GOAL := all
.PHONY: clean