From 998c2eb90a878cb6c02abc2af4d6fc9576990786 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 6 Dec 2000 05:33:27 +0000 Subject: [PATCH] For "maintainer-clean", treat microcode directory specially. If "configure" exists but "Makefile" doesn't, run "configure". --- v7/src/Makefile | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/v7/src/Makefile b/v7/src/Makefile index 7f8f3bd9c..e702141e4 100644 --- a/v7/src/Makefile +++ b/v7/src/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.8 2000/12/06 05:14:49 cph Exp $ +# $Id: Makefile,v 1.9 2000/12/06 05:33:27 cph Exp $ # # Copyright (c) 2000 Massachusetts Institute of Technology # @@ -39,7 +39,7 @@ tags TAGS: (cd $${SUBDIR} && $(MAKE) $@) || exit 1; \ done -mostlyclean clean distclean maintainer-clean: +mostlyclean clean distclean: @for SUBDIR in $(SUBDIRS); do \ if test -f $${SUBDIR}/Makefile; then \ echo "making $@ in $${SUBDIR}"; \ @@ -47,4 +47,17 @@ mostlyclean clean distclean maintainer-clean: fi; \ done +maintainer-clean: + @for SUBDIR in $(SCHEME_SUBDIRS); do \ + if test -f $${SUBDIR}/Makefile; then \ + echo "making $@ in $${SUBDIR}"; \ + (cd $${SUBDIR} && $(MAKE) $@); \ + fi; \ + done + @if test ! -f microcode/Makefile && test -f microcode/configure; then \ + (cd microcode && ./configure); \ + fi + echo "making $@ in microcode" + @(cd microcode && $(MAKE) $@) + .PHONY: all setup tags TAGS mostlyclean clean distclean maintainer-clean -- 2.25.1