diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-06-13 19:00:22 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-06-13 19:00:22 +0000 |
commit | 31a8b63419de359734d3e3a309cfe71b92dc264f (patch) | |
tree | 225d72e628f8de228b9cf598655da87182d4b9bc /Makefile.in | |
parent | 31889e007b0383eda46a0540aaae895c4e2cccb2 (diff) | |
download | gdb-31a8b63419de359734d3e3a309cfe71b92dc264f.zip gdb-31a8b63419de359734d3e3a309cfe71b92dc264f.tar.gz gdb-31a8b63419de359734d3e3a309cfe71b92dc264f.tar.bz2 |
Handle GDB's gdb/version.in.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 1c83f5c..8b442f0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1759,8 +1759,12 @@ SUPPORT_FILES = list-of-support-files-for-tool-in-question # as VER="$(VER)" VER = ` if grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \ sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \ - else \ + elif test -f $(TOOL)/version.in; then \ + head -1 $(TOOL)/version.in; \ + elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \ sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \ + else \ + echo VERSION; \ fi` PACKAGE = $(TOOL) |