From 832b42ebf59e98af3604e17bc365fd53ca1032c0 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Fri, 2 May 2008 13:35:26 +0200 Subject: [PATCH] Fix up clean target to not barf on an unbuilt tree --- debian/rules | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5