source: branches/GNU/src/binutils/src-release@ 609

Last change on this file since 609 was 608, checked in by (none), 22 years ago

This commit was manufactured by cvs2svn to create branch 'GNU'.

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 12.0 KB
Line 
1# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
2# 1999, 2000, 2001, 2002, 2003 Free Software Foundation
3#
4# This file is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 2 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17#
18
19# This Makefile contains release scripts for gdb, binutils, and other
20# packages which live in src. It used to be part of the top level Makefile,
21# but that turned out to be very messy and hard to maintain.
22
23# This stuff really ought to be cleaned up and turned into something other
24# than a Makefile. As it is it's heavily recursive.
25
26# This is the name of this script (!). Needed due to horrible recursion.
27SELF = src-release
28
29SHELL = /bin/sh
30
31BZIPPROG = bzip2
32MD5PROG = md5sum
33
34# pwd command to use. Allow user to override default by setting PWDCMD in
35# the environment to account for automounters. The make variable must not
36# be called PWDCMD, otherwise the value set here is passed to make
37# subprocesses and overrides the setting from the user's environment.
38PWD = $${PWDCMD-pwd}
39
40#
41# Support for building net releases
42
43# Files in devo used in any net release.
44# ChangeLog omitted because it may refer to files which are not in this
45# distribution (perhaps it would be better to include it anyway).
46DEVO_SUPPORT= README Makefile.in configure configure.in \
47 config.guess config.if config.sub config move-if-change \
48 mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
49 COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
50 mkinstalldirs ltconfig ltmain.sh missing ylwrap \
51 libtool.m4 gettext.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh \
52 Makefile.def Makefile.tpl src-release
53
54# Files in devo/etc used in any net release.
55# ChangeLog omitted because it may refer to files which are not in this
56# distribution (perhaps it would be better to include it anyway).
57ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
58 make-stds.texi standards.info* configure.texi configure.info* \
59 configbuild.* configdev.* fdl.texi texi2pod.pl
60
61
62# When you use `make setup-dirs' or `make taz' you should always redefine
63# this macro.
64SUPPORT_FILES = list-of-support-files-for-tool-in-question
65
66# NOTE: No double quotes in the below. It is used within shell script
67# as VER="$(VER)"
68VER = ` if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null 2>&1; then \
69 sed < bfd/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
70 elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
71 sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
72 elif test -f $(TOOL)/version.in; then \
73 head -1 $(TOOL)/version.in; \
74 elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
75 sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
76 else \
77 echo VERSION; \
78 fi`
79PACKAGE = $(TOOL)
80
81.PHONY: taz
82taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
83 $(MAKE) -f $(SELF) do-proto-toplev \
84 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
85 MD5PROG="$(MD5PROG)" \
86 SUPPORT_FILES="$(SUPPORT_FILES)"
87 $(MAKE) -f $(SELF) do-md5sum \
88 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
89 MD5PROG="$(MD5PROG)" \
90 SUPPORT_FILES="$(SUPPORT_FILES)"
91 $(MAKE) -f $(SELF) do-tar \
92 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
93 MD5PROG="$(MD5PROG)" \
94 SUPPORT_FILES="$(SUPPORT_FILES)"
95 $(MAKE) -f $(SELF) do-bz2 \
96 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
97 MD5PROG="$(MD5PROG)" \
98 SUPPORT_FILES="$(SUPPORT_FILES)"
99
100.PHONY: gdb-tar
101gdb-tar: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
102 $(MAKE) -f $(SELF) do-proto-toplev \
103 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
104 MD5PROG="$(MD5PROG)" \
105 SUPPORT_FILES="$(SUPPORT_FILES)"
106 $(MAKE) -f $(SELF) do-md5sum \
107 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
108 MD5PROG="$(MD5PROG)" \
109 SUPPORT_FILES="$(SUPPORT_FILES)"
110 $(MAKE) -f $(SELF) do-djunpack \