aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/examples/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/examples/Makefile.am')
-rw-r--r--libjava/classpath/examples/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/libjava/classpath/examples/Makefile.am b/libjava/classpath/examples/Makefile.am
index db6cac0..bf427ee 100644
--- a/libjava/classpath/examples/Makefile.am
+++ b/libjava/classpath/examples/Makefile.am
@@ -95,7 +95,10 @@ $(EXAMPLE_ZIP): $(EXAMPLE_JAVA_FILES)
mkdir -p classes/gnu/classpath/examples/icons
cp $(EXAMPLE_ICONS) classes/gnu/classpath/examples/icons
$(JCOMPILER) -d classes $(EXAMPLE_JAVA_FILES)
- cd classes; $(ZIP) -r ../$(EXAMPLE_ZIP) .; cd ..
+ (cd classes; \
+ if test "$(ZIP)" != ""; then $(ZIP) -r ../$(EXAMPLE_ZIP) .; fi; \
+ if test "$(FASTJAR)" != ""; then $(FASTJAR) cf ../$(EXAMPLE_ZIP) .; fi; \
+ cd ..)
rm -rf classes
# Zip file be gone! (and make sure the classes are gone too)