-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (21 loc) · 676 Bytes
/
Makefile
File metadata and controls
26 lines (21 loc) · 676 Bytes
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
# Create the bin directory to sort all the class files into
bin : manifest src
mkdir -p bin
javac -d bin/ -s src/ @manifest
# Create a file that lists all the java files under src/ (used by javac)
manifest : $(shell find -L src/ -type f)
find -L src/ -iname "*.java" > manifest
#Create a java archive file (JAR) for distribution
jar : bin
jar cfev fsae.jar dev.suraxius.fsae.Main -C bin pub ../images
# Run
run : bin
java -cp bin dev.suraxius.fsae.Main
#Compile and run test on change of source files
onChange :
while true; do inotifywait src/bup/*/*.java -e modify,moved_to; make run; done
# Clean up the mess:
clean :
rm -f manifest
rm -Rf bin/
rm -f fsae.jar