diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-12-26 19:31:15 +0100 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-12-26 19:31:15 +0100 |
commit | f0a7083afefe98aa7aecf4ece592915395947631 (patch) | |
tree | 4595d63ddf73b82d96652297847cebc66e4ddc2f /bin | |
parent | c020f1ef664e1ec835d856ec5485769d0a9a7386 (diff) | |
download | automake-f0a7083afefe98aa7aecf4ece592915395947631.tar.gz |
Allow user to extend .PRECIOUS target
References:
<http://lists.freedesktop.org/archives/systemd-devel/2013-July/012155.html>
<http://lists.gnu.org/archive/html/automake/2013-07/msg00011.html>
* bin/automake.in: Adjust to ensure we handle '.PRECIOUS' the same way
we do for '.PHONY' and '.MAKE'.
* lib/Automake/Rule.pm: Likewise.
* t/precious.sh: New test.
* t/list-of-tests.mk: Add it.
* t/phony.sh: Enhance a little while at it.
* NEWS: Update.
* THANKS: Likewise.
Reported-by: Holger Hans Peter Freyther <holger@freyther.de>
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/automake.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/automake.in b/bin/automake.in index 283d1bbfe..880830022 100644 --- a/bin/automake.in +++ b/bin/automake.in @@ -4645,9 +4645,9 @@ sub handle_factored_dependencies () # to append dependencies. This would not work if Automake # refrained from defining its own .PHONY target as it does # with other overridden targets. - # Likewise for '.MAKE'. + # Likewise for '.MAKE' and '.PRECIOUS'. my @undefined_conds = (TRUE,); - if ($_ ne '.PHONY' && $_ ne '.MAKE') + if ($_ ne '.PHONY' && $_ ne '.MAKE' && $_ ne '.PRECIOUS') { @undefined_conds = Automake::Rule::define ($_, 'internal', |