(distdir): New target broken out from gcc.xtar.
authorRichard Stallman <rms@gnu.org>
Thu, 31 Dec 1992 06:54:03 +0000 (06:54 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 31 Dec 1992 06:54:03 +0000 (06:54 +0000)
Depend on $(srcdir)/INSTALL.
(gcc.xtar): Depend on distdir.
(doc): Delete dep $(srcdir)/INSTALL.

From-SVN: r3005

gcc/Makefile.in

index 0df4096145e3cb2c5af857fd96c0e1429b64381e..c805116cda667d94dd2310d88b7782fb5093e28f 100644 (file)
@@ -1244,7 +1244,7 @@ test-protoize-simple: ./protoize ./unprotoize $(GCC_PASSES)
 \f
 # Remake the info files.
 
-doc: $(srcdir)/cpp.info $(srcdir)/gcc.info $(srcdir)/INSTALL
+doc: $(srcdir)/cpp.info $(srcdir)/gcc.info
 
 $(srcdir)/cpp.info: cpp.texi
        makeinfo `echo $(srcdir)/cpp.texi | sed 's,^\./,,'`
@@ -1690,7 +1690,11 @@ gcc.xtar.Z: gcc.xtar
 #      compress < gcc-$(version).tar > gcc-$(version).tar.Z
 
 #gcc-$(version).tar:
-gcc.xtar: doc c-parse.y objc-parse.y
+gcc.xtar: distdir
+# Make the distribution.
+       tar chf gcc.xtar gcc-$(version)
+
+distdir: doc $(srcdir)/INSTALL c-parse.y objc-parse.y
        if grep -s "for version ${version}" gcc.texi; \
        then true; \
        else echo "You must update the version number in \`gcc.texi'"; sleep 10;\
@@ -1722,10 +1726,6 @@ gcc.xtar: doc c-parse.y objc-parse.y
        mv tmp gcc-$(version)
 # Get rid of everything we don't want in the distribution.
        cd gcc-$(version); make -f Makefile.in extraclean
-# Make the distribution.
-       tar chf gcc.xtar gcc-$(version)
-# Get rid of the temporary directory.
-       rm -rf gcc-$(version)
 
 # do make -f ../gcc/Makefile maketest DIR=../gcc
 # in the intended test directory to make it a suitable test directory.