aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc/Makefile
diff options
context:
space:
mode:
authorRoland Pesch <pesch@cygnus>1991-09-20 22:43:47 +0000
committerRoland Pesch <pesch@cygnus>1991-09-20 22:43:47 +0000
commit1c484dd7cb1b8160f4ea4014647896313a5c9cf8 (patch)
treed0422ebdfca17e753b6d6d55deb4878dab90d820 /gdb/doc/Makefile
parentab1e12a22ef7f8d43f423fef33dbe482099c805f (diff)
downloadgdb-1c484dd7cb1b8160f4ea4014647896313a5c9cf8.zip
gdb-1c484dd7cb1b8160f4ea4014647896313a5c9cf8.tar.gz
gdb-1c484dd7cb1b8160f4ea4014647896313a5c9cf8.tar.bz2
Extract GDB version number from main GDB dir Makefile.in.
Diffstat (limited to 'gdb/doc/Makefile')
-rwxr-xr-xgdb/doc/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/doc/Makefile b/gdb/doc/Makefile
index 30bbfae..57081d3 100755
--- a/gdb/doc/Makefile
+++ b/gdb/doc/Makefile
@@ -1,5 +1,6 @@
##Copyright (C) 1991 Free Software Foundation, Inc.
+# Makefile for GDB documentation.
# This file is part of GDB.
# This program is free software; you can redistribute it and/or modify
@@ -36,12 +37,12 @@ READLINE_DIR = ${srcdir}/../readline
# Main GDB manual's source files
SFILES_DOCDIR = \
- gdb.texinfo pretex.m4 none.m4 all.m4 gdbinv-m.m4 gdbinv-s.m4
+ gdb.texinfo pretex.m4 none.m4 all.m4 gdbinv-m.m4 gdbinv-s.m4 gdbVN.m4
all: gdb.info gdb.dvi refcard.dvi gdb-internals gdbint.dvi
clean:
- rm -f gdb.dvi rdl-apps.texi gdb-all* gdb.info*
+ rm -f gdb.dvi rdl-apps.texi gdb-all* gdb.info* gdbVN.m4
rm -f gdb-internals gdbint.?? gdbint.???
rm -f refcard.ps refcard.dvi rcfonts.tex refcard.log *~
@@ -65,6 +66,11 @@ rdl-apps.texi: ${READLINE_DIR}/inc-readline.texinfo \
echo "@include ${READLINE_DIR}/inc-readline.texinfo" >rdl-apps.texi
echo "@include ${READLINE_DIR}/inc-history.texinfo" >>rdl-apps.texi
+# File to record current GDB version number (copied from main dir Makefile.in)
+gdbVN.m4 : ${srcdir}/Makefile.in
+ ( VER=`sed <${srcdir}/Makefile.in -n 's/VERSION = //p'` ;\
+ echo "_define__(<_GDB_VN__>,$$VER)" > gdbVN.m4 )
+
# GDB MANUAL: texinfo source, created by preprocessing w/m4
# Be sure to not create a bad gdb-all.texi if ${M4} is missing or aborts...
gdb-all.texi: ${SFILES_DOCDIR}