aboutsummaryrefslogtreecommitdiff
path: root/sim/common/Makefile.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-01-06 06:43:48 +0000
committerMike Frysinger <vapier@gentoo.org>2012-01-06 06:43:48 +0000
commit96cdfef03308160b3959b34707908ea33304c979 (patch)
tree0fecbcdda902dccb0d2244a60abf415219a3dc19 /sim/common/Makefile.in
parent32d929991d53ae416547b59f306c5ad29a77ae6c (diff)
downloadgdb-96cdfef03308160b3959b34707908ea33304c979.zip
gdb-96cdfef03308160b3959b34707908ea33304c979.tar.gz
gdb-96cdfef03308160b3959b34707908ea33304c979.tar.bz2
sim: headers: use abs_srcdir to find helper scripts
Trying to run `headers` in an out-of-tree build fails atm due to the relative srcdir paths being used in a location other than where they were setup to be used from. Get abs_srcdir from configure and use that instead where applicable. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/common/Makefile.in')
-rw-r--r--sim/common/Makefile.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/sim/common/Makefile.in b/sim/common/Makefile.in
index 214b658..2929b38 100644
--- a/sim/common/Makefile.in
+++ b/sim/common/Makefile.in
@@ -18,7 +18,8 @@ default: all
VPATH = @srcdir@
srcdir = @srcdir@
-srcroot = $(srcdir)/../..
+abs_srcdir = @abs_srcdir@
+srcroot = $(abs_srcdir)/../..
prefix = @prefix@
exec_prefix = @exec_prefix@
@@ -82,7 +83,7 @@ headers:
rootme=`pwd` ; \
cd $(srcdir) ; \
rm -f nltvals.new ; \
- $(SHELL) $(srcdir)/gennltvals.sh $(SHELL) $(srcroot) "$(CPP_FOR_TARGET)" > nltvals.new ; \
+ $(SHELL) $(abs_srcdir)/gennltvals.sh $(SHELL) $(srcroot) "$(CPP_FOR_TARGET)" > nltvals.new ; \
$(SHELL) $(srcroot)/move-if-change nltvals.new nltvals.def
.c.o: