For "maintainer-clean", treat microcode directory specially. If
authorChris Hanson <org/chris-hanson/cph>
Wed, 6 Dec 2000 05:33:27 +0000 (05:33 +0000)
committerChris Hanson <org/chris-hanson/cph>
Wed, 6 Dec 2000 05:33:27 +0000 (05:33 +0000)
"configure" exists but "Makefile" doesn't, run "configure".

v7/src/Makefile

index 7f8f3bd9c1cf70d92daa7f51d98f4ae44c246e7b..e702141e4f973bd54093dcd6f0975add59e9356e 100644 (file)
@@ -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