-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
31 lines (22 loc) · 772 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
31
SOURCEPATH := src/
CLASSPATH := src/:ini4j-0.5.2/ini4j-0.5.2.jar:ini4j-0.5.2/ini4j-0.5.2-jdk14.jar
BUILDPATH := build/
JARFILE := RouteOne.jar
SOURCES := $(wildcard src/*.java)
JAVAC_FLAGS := -classpath $(CLASSPATH) -sourcepath $(SOURCEPATH) -d $(BUILDPATH)
all: jar
jar: classes explode_ini resources
jar cef Main $(JARFILE) -C $(BUILDPATH) .
classes: $(SOURCES)
mkdir -p $(BUILDPATH)
javac $(JAVAC_FLAGS) $(SOURCEPATH)/Main.java
explode_ini: ini4j-0.5.2/ini4j-0.5.2.jar ini4j-0.5.2/ini4j-0.5.2-jdk14.jar
unzip -o -d $(BUILDPATH) ini4j-0.5.2/ini4j-0.5.2.jar
unzip -o -d $(BUILDPATH) ini4j-0.5.2/ini4j-0.5.2-jdk14.jar
rm -rf $(BUILDPATH)/META-INF
resources:
cp -r $(SOURCEPATH)/resources $(BUILDPATH)
clean:
rm -rf $(JARFILE)
rm -rf build/*
rmdir build