aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorRob Savoye <rob@cygnus>1993-03-22 05:51:13 +0000
committerRob Savoye <rob@cygnus>1993-03-22 05:51:13 +0000
commit1ee369e85c2abcdf4f81876ee4bbea03f7185d32 (patch)
tree22d9ae19fa0ef1361b77386e55a772a568a748ca /gdb
parente5c6be8f3fbd40f788a99453e9c87bd4be9fa245 (diff)
downloadgdb-1ee369e85c2abcdf4f81876ee4bbea03f7185d32.zip
gdb-1ee369e85c2abcdf4f81876ee4bbea03f7185d32.tar.gz
gdb-1ee369e85c2abcdf4f81876ee4bbea03f7185d32.tar.bz2
Solve all config problems, make a local site.exp file.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/Makefile.in27
1 files changed, 26 insertions, 1 deletions
diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in
index 2d1a76f..0853823 100644
--- a/gdb/testsuite/Makefile.in
+++ b/gdb/testsuite/Makefile.in
@@ -144,7 +144,32 @@ uninstall: force
# -rm -f $(datadir)/*.exp
-rm -fr $(targetdir)
-check: all
+site.exp: ./config.status
+ @echo "Making a new config file..."
+ -@rm -f ./tmp?
+ @touch site.exp
+ -@mv site.exp site.bak
+ @echo "## these variables are automatically generated by make ##" > ./tmp0
+ @echo "# Do not edit here. If you wish to override these values" >> ./tmp0
+ @echo "# add them to the last section" >> ./tmp0
+ @echo "set host_os ${host_os}" >> ./tmp0
+ @echo "set host_alias ${host_alias}" >> ./tmp0
+ @echo "set host_cpu ${host_cpu}" >> ./tmp0
+ @echo "set host_vendor ${host_vendor}" >> ./tmp0
+ @echo "set target_os ${target_os}" >> ./tmp0
+ @echo "set target_alias ${target_alias}" >> ./tmp0
+ @echo "set target_cpu ${target_cpu}" >> ./tmp0
+ @echo "set target_vendor ${target_vendor}" >> ./tmp0
+ @echo "set srcdir ${srcdir}" >> ./tmp0
+ @echo "set exec_prefix ${exec_prefix}" >> ./tmp0
+ @echo "set objdir `pwd`" >> ./tmp0
+ @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
+ @cat ./tmp0 > site.exp
+ @cat site.bak | sed \
+ -e '1,/^## All variables above are.*##/ d' >> site.exp
+ @rm -f ./tmp1 ./tmp0
+
+check: all site.exp
$(RUNTEST) $(RUNTESTFLAGS) --tool gdb GDB=$(GDB)
subdir_do: force