aboutsummaryrefslogtreecommitdiff
path: root/share/autoinclude
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-03-10 22:22:59 +0000
committerMike Buland <eichlan@xagasoft.com>2011-03-10 22:22:59 +0000
commitd74227e0ddb78f4534ae37cb05e9134192ccef8c (patch)
treedf6eef1ebc3cf6ec55a5b29a44d0b2b44fc961e4 /share/autoinclude
parentc435c7daa9df1b08dc85132fcd1c154bea9b69e2 (diff)
downloadbuild-d74227e0ddb78f4534ae37cb05e9134192ccef8c.tar.gz
build-d74227e0ddb78f4534ae37cb05e9134192ccef8c.tar.bz2
build-d74227e0ddb78f4534ae37cb05e9134192ccef8c.tar.xz
build-d74227e0ddb78f4534ae37cb05e9134192ccef8c.zip
Added rules for building java classes and jar files.
Diffstat (limited to 'share/autoinclude')
-rw-r--r--share/autoinclude/general-rules.bld24
1 files changed, 24 insertions, 0 deletions
diff --git a/share/autoinclude/general-rules.bld b/share/autoinclude/general-rules.bld
index 0b8f6e3..9110401 100644
--- a/share/autoinclude/general-rules.bld
+++ b/share/autoinclude/general-rules.bld
@@ -127,3 +127,27 @@ rule "flex"
127 execute("${FLEX} ${FLEXFLAGS} ${INPUT}"); 127 execute("${FLEX} ${FLEXFLAGS} ${INPUT}");
128 } 128 }
129} 129}
130
131rule "jar"
132{
133 input "*.class";
134 profile "build"
135 {
136 if exists(OUTPUT) then
137 {
138 unlink(OUTPUT);
139 }
140 execute("jar cvf ${OUTPUT} ${INPUT}");
141 }
142}
143
144rule "class"
145{
146 input "*.java";
147 output INPUT.regex("\\.java", ".class");
148 profile "build"
149 {
150 execute("javac -cp . ${INPUT}");
151 }
152}
153