[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake-NG] [FYI] [ng] vars: new variable $(am.conf.is-topdir)
From: |
Stefano Lattarini |
Subject: |
[Automake-NG] [FYI] [ng] vars: new variable $(am.conf.is-topdir) |
Date: |
Fri, 10 Aug 2012 10:16:29 +0200 |
* automake.in (generate_makefile): Define that variable to "yes" if the
Makefile being currently generated is in the top-level directory, define
it to the empty string otherwise. This offers a way (alternative to the
'%?TOPDIR_P%' transform) to determine whether a recipe is being executed
in the top-level directory or not.
Signed-off-by: Stefano Lattarini <address@hidden>
---
automake.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/automake.in b/automake.in
index 3a9cca3..5acd434 100644
--- a/automake.in
+++ b/automake.in
@@ -6739,6 +6739,8 @@ sub generate_makefile ($$)
# Must do this after reading .am file.
define_variable ('subdir', INTERNAL, $relative_dir);
+ define_variable ('am.conf.is-topdir', INTERNAL,
+ $relative_dir eq '.' ? "yes" : "");
define_variable ('am.conf.aux-dir', INTERNAL, $am_config_aux_dir);
define_variable ('am.relpath.makefile', INTERNAL, basename ($makefile));
define_variable ('am.relpath.makefile.am', INTERNAL,
--
1.7.12.rc0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Automake-NG] [FYI] [ng] vars: new variable $(am.conf.is-topdir),
Stefano Lattarini <=