Skip to content

Commit

Permalink
Tidy Makefile.
Browse files Browse the repository at this point in the history
Add -p to mkdir so it doesn't choke if temp dir already exists.
Remove all artifacts in target 'clean'.
  • Loading branch information
flaviusb committed Oct 19, 2016
1 parent c2b1a31 commit 93eeb2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ 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 built
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 ..
Expand All @@ -14,7 +14,7 @@ BIMserver-query-plugin-shell.jar: src/main/java/nz/ac/auckland/cs/*.java
all: BIMserver-query-plugin-shell.jar

clean:
rm -rf built
rm -rf built BIMserver-query-plugin-shell.jar

.DEFAULT_GOAL := all

Expand Down

0 comments on commit 93eeb2d

Please sign in to comment.