aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-05-12 00:31:09 +0000
committerAndrew Cagney <cagney@redhat.com>2001-05-12 00:31:09 +0000
commitd3814881674ed862e5c9e2689c10ab799bbf7b8e (patch)
treed4c73ca71e61b72da8345e7afdbbd7cc059e2f84 /gdb/Makefile.in
parentfb7a8ef0dfe79497e9bb51a8daeec2e70f1186d5 (diff)
downloadgdb-d3814881674ed862e5c9e2689c10ab799bbf7b8e.zip
gdb-d3814881674ed862e5c9e2689c10ab799bbf7b8e.tar.gz
gdb-d3814881674ed862e5c9e2689c10ab799bbf7b8e.tar.bz2
Replace Makefile.in:VERSION with the file version.in.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index f28ed00..27204b2 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -359,7 +359,6 @@ CDEPS = $(XM_CDEPS) $(TM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE) \
ADD_FILES = $(REGEX) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
ADD_DEPS = $(REGEX) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
-VERSION = 5.0
DIST=gdb
LINT=/usr/5bin/lint
@@ -933,7 +932,7 @@ tags: TAGS
clean mostlyclean: $(CONFIG_CLEAN)
@$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(SUBDIRS)" subdir_do
- rm -f *.o *.a $(ADD_FILES) *~ init.c-tmp init.l-tmp
+ rm -f *.o *.a $(ADD_FILES) *~ init.c-tmp init.l-tmp version.c-tmp
rm -f init.c version.c
rm -f gdb$(EXEEXT) core make.log
rm -f gdb[0-9]$(EXEEXT)
@@ -1014,12 +1013,13 @@ $(srcdir)/copying.c: @MAINTAINER_MODE_TRUE@ \
< $(srcdir)/COPYING > $(srcdir)/copying.tmp
mv $(srcdir)/copying.tmp $(srcdir)/copying.c
-version.c: Makefile
- rm -f version.c
- echo '#include "version.h"' >> version.c
- echo 'const char version[] = "$(VERSION)";' >> version.c
- echo 'const char host_name[] = "$(host_alias)";' >> version.c
- echo 'const char target_name[] = "$(target_alias)";' >> version.c
+version.c: Makefile version.in
+ rm -f version.c-tmp version.c
+ echo '#include "version.h"' >> version.c-tmp
+ echo 'const char version[] = "'"`head -1 ${srcdir}/version.in`"'";' >> version.c-tmp
+ echo 'const char host_name[] = "$(host_alias)";' >> version.c-tmp
+ echo 'const char target_name[] = "$(target_alias)";' >> version.c-tmp
+ mv version.c-tmp version.c
version.o: version.c $(version_h)
# c-exp.tab.c is generated in objdir from c-exp.y if it doesn't exist