From: Tollef Fog Heen Date: Fri, 2 May 2008 11:35:26 +0000 (+0200) Subject: Fix up clean target to not barf on an unbuilt tree X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=832b42ebf59e98af3604e17bc365fd53ca1032c0;p=scalable-opengroupware.org Fix up clean target to not barf on an unbuilt tree --- diff --git a/debian/rules b/debian/rules index 82642d37..3650d5d0 100755 --- a/debian/rules +++ b/debian/rules @@ -46,7 +46,10 @@ clean: rm -f build-stamp # Add here commands to clean up after the build process. - GNUSTEP_MAKEFILES=$(GNUSTEP_MAKEFILES) . $(GNUSTEP_SETUP) && $(MAKE) distclean || true + if [ -e config.make ]; then \ + GNUSTEP_MAKEFILES=$(GNUSTEP_MAKEFILES) . $(GNUSTEP_SETUP) ; \ + $(MAKE) distclean ; \ + fi ifneq "$(wildcard /usr/share/misc/config.sub)" "" cp -f /usr/share/misc/config.sub config.sub endif