From cb2e3da94f70846d825180c2c98d20c82eee596b Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 24 Feb 2002 05:18:22 +0000 Subject: [PATCH] Can't really remove command-files until arguments are accounted for in their dependencies. [SVN r12923] --- boost-base.jam | 5 +++-- v1/boost-base.jam | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/boost-base.jam b/boost-base.jam index 201c5ece1..c2de91dc6 100644 --- a/boost-base.jam +++ b/boost-base.jam @@ -1722,7 +1722,7 @@ rule with-command-file ( rule-name targets * : sources * ) { # create a command-file target and place it where the first target # will be built - local command-file = $(<[2]:S=.CMD) ; + local command-file = $(targets[1]:S=.CMD) ; LOCATE on $(command-file) = $(gLOCATE($(targets[1]))) ; build-command-file $(command-file) : $(sources) ; @@ -1731,7 +1731,8 @@ rule with-command-file ( rule-name targets * : sources * ) local result = [ $(rule-name) $(targets) : $(command-file) ] ; # clean up afterwards - remove-command-file $(targets) : $(command-file) ; + # Can't really do this until arguments are accounted for. + # remove-command-file $(targets) : $(command-file) ; return result ; } diff --git a/v1/boost-base.jam b/v1/boost-base.jam index 201c5ece1..c2de91dc6 100644 --- a/v1/boost-base.jam +++ b/v1/boost-base.jam @@ -1722,7 +1722,7 @@ rule with-command-file ( rule-name targets * : sources * ) { # create a command-file target and place it where the first target # will be built - local command-file = $(<[2]:S=.CMD) ; + local command-file = $(targets[1]:S=.CMD) ; LOCATE on $(command-file) = $(gLOCATE($(targets[1]))) ; build-command-file $(command-file) : $(sources) ; @@ -1731,7 +1731,8 @@ rule with-command-file ( rule-name targets * : sources * ) local result = [ $(rule-name) $(targets) : $(command-file) ] ; # clean up afterwards - remove-command-file $(targets) : $(command-file) ; + # Can't really do this until arguments are accounted for. + # remove-command-file $(targets) : $(command-file) ; return result ; }