Replace Makefile.in:VERSION with the file version.in.
authorAndrew Cagney <cagney@redhat.com>
Sat, 12 May 2001 00:31:09 +0000 (00:31 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 12 May 2001 00:31:09 +0000 (00:31 +0000)
gdb/ChangeLog
gdb/Makefile.in
gdb/version.in [new file with mode: 0644]

index cfe1493731bdf9d13f42b16d2cf82ffc26e9bedf..cc17da7b4dd09f828ab18faa7c570c456f653c58 100644 (file)
@@ -1,3 +1,11 @@
+2001-05-11  Andrew Cagney  <ac131313@redhat.com>
+
+       * Makefile.in (VERSION): Delete.  Moved to file ``version.in''.
+       (version.c): Depends on file ``version.in''.  Extract version
+       number from ``version.in'' file.
+       (clean mostlyclean): Update.
+       * version.in: New file.
+       
 2001-05-11  Kevin Buettner  <kevinb@redhat.com>
 
        * breakpoint.c (set_raw_breakpoint): Add new parameter
index f28ed007fe54dd873a2bd87292bc72f009d61a31..27204b20ec6dae94c794cff362d823bbf6e4d56d 100644 (file)
@@ -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
diff --git a/gdb/version.in b/gdb/version.in
new file mode 100644 (file)
index 0000000..819e07a
--- /dev/null
@@ -0,0 +1 @@
+5.0
This page took 0.030121 seconds and 4 git commands to generate.