From: Chris Hanson Date: Wed, 6 Dec 2000 04:57:03 +0000 (+0000) Subject: Don't execute "*clean" rule in subdirectory if there's no makefile. X-Git-Tag: 20090517-FFI~3139 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=0914bdc81e3262ca8bf57a39a55a30516fb02ce0;p=mit-scheme.git Don't execute "*clean" rule in subdirectory if there's no makefile. --- diff --git a/v7/src/Makefile b/v7/src/Makefile index 5cb1a8c63..fb73f2136 100644 --- a/v7/src/Makefile +++ b/v7/src/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.4 2000/12/06 03:00:15 cph Exp $ +# $Id: Makefile,v 1.5 2000/12/06 04:57:03 cph Exp $ # # Copyright (c) 2000 Massachusetts Institute of Technology # @@ -41,8 +41,10 @@ tags TAGS: mostlyclean clean distclean maintainer-clean: @for SUBDIR in $(SUBDIRS); do \ - echo "making $@ in $${SUBDIR}"; \ - (cd $${SUBDIR} && $(MAKE) $@); \ + if test -f $${SUBDIR}/Makefile; then \ + echo "making $@ in $${SUBDIR}"; \ + (cd $${SUBDIR} && $(MAKE) $@); \ + fi done .PHONY: all setup tags TAGS mostlyclean clean distclean maintainer-clean