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