diff options
author | Ben Elliston <bje@au.ibm.com> | 2004-05-23 00:06:49 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2004-05-23 00:06:49 +0000 |
commit | bc286f95ec5f5dbf4605cfa881a4666b18b62827 (patch) | |
tree | 36717a7de479935daf96df99ff8028d804e0c48e /bfd/Makefile.am | |
parent | fb90c1aa1fc6eebee7c9fbc6f312fdd1488d7d1c (diff) | |
download | gdb-bc286f95ec5f5dbf4605cfa881a4666b18b62827.zip gdb-bc286f95ec5f5dbf4605cfa881a4666b18b62827.tar.gz gdb-bc286f95ec5f5dbf4605cfa881a4666b18b62827.tar.bz2 |
* configure.in (is_release): Remove.
(bfd_version_date, bfd_version, bfd_version_string): Likewise.
(AC_OUTPUT): Don't output bfdver.h from version.h.
* configure: Regenerate.
* Makefile.am (RELEASE): New variable.
(bfdver.h): New target.
* Makefile.in: Regenerate.
* doc/Makefile.in: Likewise.
Diffstat (limited to 'bfd/Makefile.am')
-rw-r--r-- | bfd/Makefile.am | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bfd/Makefile.am b/bfd/Makefile.am index 6f14c30..45fc7cd 100644 --- a/bfd/Makefile.am +++ b/bfd/Makefile.am @@ -2,6 +2,9 @@ AUTOMAKE_OPTIONS = cygnus +# Uncomment the following line when doing a release. +# RELEASE=y + INCDIR = $(srcdir)/../include CSEARCH = -I. -I$(srcdir) -I$(INCDIR) MKDEP = gcc -MM @@ -864,6 +867,16 @@ DISTCLEANFILES = $(BUILD_CFILES) $(BUILD_HFILES) config.status: $(srcdir)/configure $(srcdir)/config.bfd $(srcdir)/configure.host $(SHELL) ./config.status --recheck +bfdver.h: version.h Makefile.in + @echo "creating $@" + @bfd_version=`echo "$(VERSION)" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\ + bfd_version_string="\"$(VERSION)\"" ;\ + if test "x$(RELEASE)" = x ; then \ + bfd_version_date=`sed -n -e 's/.*DATE //p' < $<` ;\ + bfd_version_string="\"$(VERSION) $${bfd_version_date}\"" ;\ + fi ;\ + sed -e "s/@bfd_version@/$$bfd_version/" -e "s/@bfd_version_string@/$$bfd_version_string/" < $< > $@ + # What appears below is generated by a hacked mkdep using gcc -MM. # DO NOT DELETE THIS LINE -- mkdep uses it. |