projects
/
org.ibex.tool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
27c2b99
)
optimise Makefile to reduce build times
author
crawshaw
<crawshaw@ibex.org>
Tue, 23 Nov 2004 19:39:41 +0000
(19:39 +0000)
committer
crawshaw
<crawshaw@ibex.org>
Tue, 23 Nov 2004 19:39:41 +0000
(19:39 +0000)
darcs-hash:
20041123193941
-2eb37-
a448ad1f701b5690def383009751bdea0da03a93
.gz
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
1745df1
..
dcd5829
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,7
+1,11
@@
-default:
- @mkdir -p build
- @javac -d build/ $(shell find src/java -name \*.java)
+default: $(patsubst src/java/%.java,build/%.class,$(shell find src/java -name \*.java))
@cp -R src/rsc/* build/
@cp -R src/rsc/* build/
+build/%.class:
+ @mkdir -p build
+ @echo "Compiling $(subst /,.,$*)"
+ @javac -sourcepath src/java -d build -source 1.3 -target 1.1 \
+ src/java/$*.java
+
clean:
@rm -rf build
clean:
@rm -rf build