aboutsummaryrefslogtreecommitdiff
path: root/share/autoinclude/general-rules.bld
diff options
context:
space:
mode:
Diffstat (limited to 'share/autoinclude/general-rules.bld')
-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