source: main/trunk/greenstone2/build-src/src/java/org/nzdl/gsdl/Makefile@ 21420

Last change on this file since 21420 was 21420, checked in by davidb, 14 years ago

Previous makefile always compiled up Java code, even if nothing had changed. Changed to generate .class files in more logical place, and modified jar command to pick up on them in their new location

File size: 341 bytes
Line 
1JAVAC = javac
2JAR = jar
3
4CLASSES = ApplyXSLT.class ApplyXSLTUtil.class
5
6all: ApplyXSLT.jar
7
8install:
9
10
11clean:
12 rm -rf *.class ApplyXSLT.jar
13
14ApplyXSLT.jar: $(CLASSES)
15 $(JAR) cvf ApplyXSLT.jar -C ../../../ org/nzdl/gsdl/ApplyXSLT.class ApplyXSLTUtil.class
16
17
18%.class : %.java
19 $(JAVAC) -d ../../.. -classpath ../../.. $<
20
21
22distclean: clean
Note: See TracBrowser for help on using the repository browser.