From: David Reiss Date: Wed, 11 Feb 2009 01:11:54 +0000 (+0000) Subject: THRIFT-199. perl: Let "make distclean" work when we are not using Perl X-Git-Tag: 0.2.0~304 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=067c9aff285f3922d3e13b46ca52e4ec8c68b586;p=common%2Fthrift.git THRIFT-199. perl: Let "make distclean" work when we are not using Perl When configure is run with --without-perl, lib/perl/Makefile.am cannot generate Makefile-perl.mk. However, "make distclean" still runs, so the clean-local target fails. This version just silently does nothing when Perl is not being used. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@743190 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/perl/Makefile.am b/lib/perl/Makefile.am index 0d775fa6..fba568eb 100644 --- a/lib/perl/Makefile.am +++ b/lib/perl/Makefile.am @@ -14,8 +14,10 @@ check-local: install-exec-local: Makefile-perl.mk $(MAKE) -f Makefile-perl.mk install DESTDIR=$(DESTDIR)/ -clean-local: Makefile-perl.mk - $(MAKE) -f Makefile-perl.mk clean +clean-local: + if test -f Makefile-perl.mk ; then \ + $(MAKE) -f Makefile-perl.mk clean ; \ + fi rm -f Makefile-perl.mk.old EXTRA_DIST = MANIFEST \