summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-11-28 12:41:45 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-11-28 12:41:45 +0000
commitd662eaab5446abeb96a25fb80641ab0a57bf9c38 (patch)
treebce16c6e96335d1ee94ab1839d11e5fc15040bc3 /gnu/usr.bin
parent6972414dec14d307c0cd10bb9c4312c2706c550e (diff)
fix race: install-all can only be run *after* all is finished, otherwise
we may end up installing gdb while it's been rm -f. okay kettenis@
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/binutils/gdb/Makefile.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/gdb/Makefile.in b/gnu/usr.bin/binutils/gdb/Makefile.in
index abcaf2f7e09..24aaabf1fcd 100644
--- a/gnu/usr.bin/binutils/gdb/Makefile.in
+++ b/gnu/usr.bin/binutils/gdb/Makefile.in
@@ -1018,7 +1018,9 @@ gdb.z:gdb.1
# source file and doesn't care about rebuilding or just wants to save the
# time it takes for make to check that all is up to date.
# install-only is intended to address that need.
-install: all install-only
+install: all
+ @exec ${MAKE} install-only
+
install-only: $(CONFIG_INSTALL)
transformed_name=`t='$(program_transform_name)'; \
echo gdb | sed -e "$$t"` ; \