-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
30 lines (23 loc) · 886 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
all:
printf "{\n" >version.json
printf "\t \"version\": \"" >> version.json
git tag | tail -n 1 | cat | tr -d "\n" >>version.json
printf "\",\n" >>version.json
printf "\t \"git_revision\": \"" >>version.json
git rev-parse HEAD | cat | tr -d "\n" >>version.json
printf "\"\n}" >>version.json
javac -cp lib/core.jar:lib/java-json.jar -d . src/*.java
jar cfmv BehaviorMate.jar Manifest.txt *.class
settings:
javac -cp lib/core.jar:lib/java-json.jar -d . src/SettingsLoader.java
jar cfmv Settings.jar SettingsManifest.txt *.class
form:
javac -cp lib/core.jar:lib/java-json.jar -d . src/SettingsCreator.java
jar cfmv SettingsForm.jar FormManifest.txt *.class
attrs:
javac -cp lib/core.jar:lib/java-json.jar -d . src/TrialAttrsForm.java
jar cfmv TrialAttrsForm.jar FormManifest.txt *.class
cleanbuild:
rm -f *.class
clean: cleanbuild
rm version.json BehaviorMate.jar