diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2011-04-02 11:09:10 +0200 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2011-04-02 11:09:10 +0200 |
commit | e87c030d838a0c649239c9d2a632c1b2415852a0 (patch) | |
tree | b10a3d64d6a00d6d1a9f8e00d80b027efe1f0ab8 /automake.in | |
parent | 0a6a45503a44d149da77e1b3b35aa16592c1a258 (diff) | |
download | automake-e87c030d838a0c649239c9d2a632c1b2415852a0.tar.gz |
Create subdirs for generated sources even when not dep tracking.
* automake.in (handle_single_transform): If $object is derived
and lands in subdir, be sure to output a dirstamp dependency.
* tests/yacc5.test: Avoid falsely matching the dirstamp
dependency when grepping for a rule.
* tests/lex-subobj-nodep.test: New test.
* tests/Makefile.am (TESTS): Update.
* THANKS: Update.
Report by Ignacy Gawedzki.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'automake.in')
-rwxr-xr-x | automake.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/automake.in b/automake.in index d56fbf7e8..d74730dcc 100755 --- a/automake.in +++ b/automake.in @@ -2053,6 +2053,15 @@ sub handle_single_transform ($$$$$%) # derived from is not. &push_dist_common ($object) unless ($topparent =~ /^(?:nobase_)?nodist_/); + + # If resulting derived source is in a subdir, we need to make + # sure the subdir exists at build time. + if ($object =~ /\//) + { + my $dirstamp = require_build_directory_maybe ($object); + depend ($object, $dirstamp) + if ($dirstamp); + } next; } |