From 0914bdc81e3262ca8bf57a39a55a30516fb02ce0 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 6 Dec 2000 04:57:03 +0000 Subject: [PATCH] Don't execute "*clean" rule in subdirectory if there's no makefile. --- v7/src/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.25.1