17307412 clobber/clean can fail in puppet/ext
authorVirginia Wray <virginia.wray@oracle.com>
Thu, 15 Aug 2013 09:22:09 -0700
changeset 1437 bb7ccf69cdad
parent 1436 7d0fcc0c9183
child 1438 d200c16f9c03
17307412 clobber/clean can fail in puppet/ext
components/puppet/Makefile
--- a/components/puppet/Makefile	Wed Aug 14 23:47:59 2013 -0600
+++ b/components/puppet/Makefile	Thu Aug 15 09:22:09 2013 -0700
@@ -56,7 +56,9 @@
 install:	../facter/build/$(MACH32)/.installed $(INSTALL_32)
 
 clean::
-	(cd ext; $(GMAKE) clean; $(RM) Makefile)
+	@if [ -f ext/Makefile ]; then \
+		(cd ext; $(GMAKE) clean; $(RM) Makefile) \
+	fi
 
 # puppet requires the installation of the following rubygems to run
 # the unittests:  rspec rspec-expectations mocha rake rack hiera rgen