]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Tue, 18 Jun 2002 20:02:49 +0000 (20:02 +0000)
committerNo Author <no-author@gcc.gnu.org>
Tue, 18 Jun 2002 20:02:49 +0000 (20:02 +0000)
'gcc-3_1-branch'.

From-SVN: r54760

Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..ff81fa5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,53 @@
+#
+# Redirecting Makefile.
+#   Copyright (C) 2002 Free Software Foundation
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+# This Makefile is a red herring.  It is not normally used and it is never
+# written by 'configure' from 'Makefile.in'.  This Makefile is here to
+# support users who try to configure/build in the source directory.  It
+# simply chdir's into a subdirectory created by configure and reinvokes
+# make.  Few targets are listed because advanced users (who would use those
+# targets) are assumed to know that a separate build dir is recommended.
+
+SHELL = /bin/sh
+
+# Additional pass-through targets can be listed here.
+TARGETS=bootstrap \
+        clean \
+        install
+
+all:
+.PHONY: sanitycheck
+
+distclean:
+       test -f s-buildd || exit 0 &&  \
+         . ./s-buildd && rm -rf $${builddir} s-buildd
+
+sanitycheck:
+       @if test ! -f s-buildd; then  \
+         echo 'You must configure before attempting to build.';  \
+         echo 'Please read the instructions in the INSTALL directory.';  \
+         exit 1;  \
+       fi
+
+$(TARGETS): sanitycheck
+       (. ./s-buildd; cd $${builddir}; ${MAKE} $@)
+
+all: sanitycheck
+       (. ./s-buildd; cd $${builddir}; ${MAKE} $${defaulttarget})
+