The Java Makefile.ams assume the existence of ANT, but "make distclean"
runs in the Java directories even if ENABLE_JAVA is off. This change
makes the clean-local target handle the absence of ANT, fixing
"make distclean".
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665683
13f79535-47bb-0310-9956-
ffa450edef68
install-exec-hook:
$(ANT) install
+# Make sure this doesn't fail if ant is not configured.
clean-local:
- $(ANT) clean
+ ANT=$(ANT) ; if test -z "$$ANT" ; then ANT=: ; fi ; \
+ $$ANT clean
check-local: all
check:
$(ANT) test
+# Make sure this doesn't fail if ant is not configured.
clean-local:
- $(ANT) clean
+ ANT=$(ANT) ; if test -z "$$ANT" ; then ANT=: ; fi ; \
+ $$ANT clean