(distdir-start): Make tmp/ginclude and copy its files.
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 13 Jul 1994 22:48:24 +0000 (18:48 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 13 Jul 1994 22:48:24 +0000 (18:48 -0400)
(distdir-finish): Don't use -f Makefile.in.

From-SVN: r7770

gcc/Makefile.in

index 3cc43b906733781c17676ccc954e382c5f907d0c..f8062f7b9b4f4647e2dae0ea285cefd58dd66ed8 100644 (file)
@@ -2119,6 +2119,7 @@ distdir-start: doc $(srcdir)/INSTALL c-parse.y c-gperf.h objc-parse.y \
 # which has the name that we want to have in the tar file.
        mkdir tmp
        mkdir tmp/config
+       mkdir tmp/ginclude
        mkdir tmp/objc
        for file in *[0-9a-zA-Z+]; do \
          ln $$file tmp > /dev/null 2>&1 || cp $$file tmp; \
@@ -2138,6 +2139,10 @@ distdir-start: doc $(srcdir)/INSTALL c-parse.y c-gperf.h objc-parse.y \
            || cp $$file ../tmp/config; \
          fi; \
        done
+       cd ginclude; \
+       for file in *[0-9a-zA-Z+]; do \
+         ln $$file ../tmp/ginclude >/dev/null 2>&1 || cp $$file ../tmp/ginclude; \
+       done
        cd objc; \
        for file in *[0-9a-zA-Z+]; do \
          ln $$file ../tmp/objc >/dev/null 2>&1 || cp $$file ../tmp/objc; \
@@ -2147,8 +2152,10 @@ distdir-start: doc $(srcdir)/INSTALL c-parse.y c-gperf.h objc-parse.y \
 # Finish making `distdir', after the languages have done their thing.
 distdir-finish:
        mv tmp gcc-$(version)
-# Get rid of everything we don't want in the distribution.
-       cd gcc-$(version); make -f Makefile.in extraclean
+# Get rid of everything we don't want in the distribution.  We'd want
+# this to use Makefile.in, but it doesn't have the `lang.foo' targets
+# expanded.
+       cd gcc-$(version); make extraclean
 
 distdir: distdir-start lang.distdir distdir-finish