Remove sanitized-out Magic Cap support, will never be released
[deliverable/binutils-gdb.git] / sim / Makefile.in
index 6c2d2cf41539d2656c83a4ebb892c2399c0e4e04..c70355c1f2ec5d63704ee35ce840590c3c9d5537 100644 (file)
@@ -61,10 +61,6 @@ RANLIB = @RANLIB@
 
 SUBDIRS = @subdirs@
 
-.NOEXPORT:
-MAKEOVERRIDES=
-
-
 INCDIR = $(srcdir)/../include
 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
 DEP = mkdep
@@ -133,6 +129,16 @@ all:
                else true; fi; \
        done
 
+clean mostlyclean:
+       @rootme=`pwd` ; export rootme ; \
+       for dir in . ${SUBDIRS}; do \
+               if [ "$$dir" = "." ]; then \
+                       true; \
+               elif [ -d $$dir ]; then \
+                       (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@); \
+               else true; fi; \
+       done
+
 distclean maintainer-clean realclean:
        @rootme=`pwd` ; export rootme ; \
        for dir in . ${SUBDIRS}; do \
@@ -178,6 +184,9 @@ dvi:
 ### 
 ### 
 
+.NOEXPORT:
+MAKEOVERRIDES=
+
 .PHONY: check installcheck
 check:
 installcheck:
@@ -196,7 +205,7 @@ config.status: configure
 # This is intended to be invoked in $srcdir as
 # "make -f Makefile.in autoconf-common".
 .PHONY: autoconf-common
-autoconf-common:
+autoconf-common autoheader-common:
        for d in * ; \
        do \
            if [ -d $$d -a -f $$d/configure.in ] ; \
@@ -205,14 +214,21 @@ autoconf-common:
                then \
                    echo "Running autoconf in $$d ..." ; \
                    (cd $$d && autoconf) ; \
+                   if [ $* = autoheader-common ] ; \
+                   then \
+                     echo "Running autoheader in $$d ..." ; \
+                     (cd $$d && autoheader) ; \
+                   fi ; \
                fi ; \
            fi ; \
        done
 
-autoconf-changelog:
-       user="`finger $$USER | sed -n 's/^.*Name: //p'` <$$USER@`hostname`>" ; \
+autoconf-changelog autoheader-changelog:
+       id="`id | sed -e 's/^[^(]*(\([^)]*\).*$$/\1/'`" ; \
+       name=`grep "^$$id:" /etc/passwd | cut -f 5 -d ':'` ; \
+       host="`hostname`" ; \
        date="`date | sed 's/ [^ ]* \([0-9]*\)$$/ \1/'`" ; \
-       echo "$$date $$user" ; \
+       echo "$$date $$name $$id@$$host" ; \
        for d in * ; \
        do \
            if [ -d $$d -a -f $$d/configure.in ] ; \
@@ -220,12 +236,29 @@ autoconf-changelog:
                if grep SIM_AC_COMMON $$d/configure.in >/dev/null ; \
                then \
                    echo "Creating new-ChangeLog in $$d ..." ; \
-                   ( echo "$$date  $$user" ; \
+                   ( echo "$$date  $$name  <$$id@$$host>" ; \
                      echo "" ; \
                      echo "    * configure: Regenerated to track ../common/aclocal.m4 changes." ; \
+                     if [ $* = autoheader-changelog ] ; \
+                     then \
+                       echo "  * config.in: Ditto." ; \
+                     fi ; \
                      echo "" ; \
                      cat $$d/ChangeLog \
                    ) > $$d/new-ChangeLog ; \
                fi ; \
            fi ; \
        done
+
+autoconf-install autoheader-install:
+       for d in * ; \
+       do \
+           if [ -d $$d -a -f $$d/configure.in ] ; \
+           then \
+               if grep SIM_AC_COMMON $$d/configure.in >/dev/null ; \
+               then \
+                   echo "Moving $$d/new-ChangeLog to $$d/ChangeLog ..." ; \
+                   mv $$d/new-ChangeLog $$d/ChangeLog ; \
+               fi ; \
+           fi ; \
+       done
This page took 0.02569 seconds and 4 git commands to generate.