You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2009/02/11 02:11:55 UTC

svn commit: r743190 - /incubator/thrift/trunk/lib/perl/Makefile.am

Author: dreiss
Date: Wed Feb 11 01:11:54 2009
New Revision: 743190

URL: http://svn.apache.org/viewvc?rev=743190&view=rev
Log:
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.

Modified:
    incubator/thrift/trunk/lib/perl/Makefile.am

Modified: incubator/thrift/trunk/lib/perl/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/perl/Makefile.am?rev=743190&r1=743189&r2=743190&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/perl/Makefile.am (original)
+++ incubator/thrift/trunk/lib/perl/Makefile.am Wed Feb 11 01:11:54 2009
@@ -14,8 +14,10 @@
 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 \