]> err.no Git - scalable-opengroupware.org/commitdiff
Fix up clean target to not barf on an unbuilt tree
authorTollef Fog Heen <tfheen@err.no>
Fri, 2 May 2008 11:35:26 +0000 (13:35 +0200)
committerTollef Fog Heen <tfheen@err.no>
Fri, 2 May 2008 11:35:26 +0000 (13:35 +0200)
debian/rules

index 82642d378df3a89cb808fe4122d2fbbc1f790dca..3650d5d0db5e6d16cc542fd70541b5da6110879e 100755 (executable)
@@ -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