File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
2
- # Use this file with `` make'' to compile and package VimCoder.
2
+ # Use this file with GNU make to compile and package VimCoder.
3
3
# Supported targets: all clean distclean dist fetch jar
4
4
5
5
project = VimCoder
6
6
version = 0.3.2
7
7
8
- sources = src/com/dogcows/VimCoder.java src/com/dogcows/Util .java src/com/dogcows/Editor.java
8
+ sources = $( wildcard src/com/dogcows/* .java)
9
9
library = lib/ContestApplet.jar
10
10
jarfile = $(project ) -$(version ) .jar
11
+ resources = $(wildcard src/com/dogcows/resources/* )
11
12
12
13
JAVAC = javac
13
14
JAVACFLAGS = -d . -sourcepath src -classpath $(library )
@@ -30,23 +31,24 @@ fetch: $(library)
30
31
jar : $(jarfile )
31
32
32
33
34
+ $(classes ) : $(sources ) $(library )
35
+ $(JAVAC ) $(JAVACFLAGS ) $<
36
+
33
37
$(library ) :
34
38
@echo " Fetching dependencies..."
35
39
mkdir -p lib
36
40
curl -o $@ http://www.topcoder.com/contest/classes/ContestApplet.jar
37
41
38
- $(jarfile ) : $(firstword $(classes ) ) META-INF/MANIFEST.MF
42
+ $(jarfile ) : $(classes ) $(resources ) META-INF/MANIFEST.MF
39
43
@echo " Packaging jar file..."
40
44
mkdir -p com/dogcows/resources
41
45
cp src/com/dogcows/resources/* com/dogcows/resources
42
46
rm -f $@
43
47
zip $@ META-INF/MANIFEST.MF COPYING README $$(find com -type f | sort )
44
48
@echo " Done."
45
49
46
- $(classes ) : $(sources ) $(library )
47
- $(JAVAC ) $(JAVACFLAGS ) $<
48
-
49
50
META-INF/MANIFEST.MF :
51
+ @echo " Generating MANIFEST.MF..."
50
52
mkdir -p META-INF
51
53
printf " Manifest-Version: 1.0\n\n" > $@
52
54
You can’t perform that action at this time.
0 commit comments