changeset 16355:022898b4323b

build: Disallow packaging distribution unless Java is present (bug #38532) * scripts/Makefile.am: Add dist-hook which issues warning message and stops 'make dist' when Java is not present.
author Rik <rik@octave.org>
date Thu, 21 Mar 2013 21:24:40 -0700
parents fb27f1e08297
children df643a532b61
files scripts/Makefile.am
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/Makefile.am	Thu Mar 21 16:30:00 2013 -0400
+++ b/scripts/Makefile.am	Thu Mar 21 21:24:40 2013 -0700
@@ -438,6 +438,12 @@
 	done
 .PHONY: uninstall-pkg-add
 
+if AMCOND_HAVE_JAVA
+else
+dist-hook:
+	@echo "Packaging distribution requires Java." ; exit 1;
+endif
+
 EXTRA_DIST += \
   $(IMAGES) \
   $(FCN_FILES) \