]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] subdirs: verbatim include of relevant makefile fragment
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 11 Aug 2012 16:18:18 +0000 (18:18 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 11 Aug 2012 16:38:39 +0000 (18:38 +0200)
* lib/am/subdirs.am: Rename ...
* lib/am/subdirs.mk: ... like this.  Prefer '#' comments over
'##' ones.
* automake.in (handle_subdirs): Include it with the 'verbatim'
function rather than with the 'file_contents' one.
(generate_makefile): Move its call later.  This is actually required
to avoid spurious failures.
* Makefile.am (dist_am_DATA): Adjust.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Makefile.am
automake.in
lib/am/subdirs.mk [moved from lib/am/subdirs.am with 95% similarity]

index 6a773a9f42a607879b6be8b6793f51772b253e7d..899d301d23c5851a157033c9f2c4cb780d021e7f 100644 (file)
@@ -197,6 +197,7 @@ dist_am_DATA = \
   lib/am/dejagnu.mk \
   lib/am/distcheck.mk \
   lib/am/distdir.mk \
+  lib/am/subdirs.mk \
   lib/am/compile.am \
   lib/am/configure.am \
   lib/am/data.am \
@@ -218,7 +219,6 @@ dist_am_DATA = \
   lib/am/python.am \
   lib/am/remake-hdr.am \
   lib/am/scripts.am \
-  lib/am/subdirs.am \
   lib/am/texi-vers.am \
   lib/am/texi-spec.am \
   lib/am/texinfos.am \
index 17e4c638aea60200935ce817a5ab55da4cf7685e..7361945400be4087683eadf5c7047650b7c35561 100644 (file)
@@ -3357,7 +3357,7 @@ sub handle_subdirs ()
   check_directories_in_var $dsubdirs
     if $dsubdirs;
 
-  $output_rules .= &file_contents ('subdirs', new Automake::Location);
+  verbatim ('subdirs');
 }
 
 
@@ -6736,7 +6736,6 @@ sub generate_makefile ($$)
   handle_data;
   handle_headers;
   verbatim ('tags');
-  handle_subdirs;
   handle_user_recursion;
   handle_minor_options;
 
@@ -6762,6 +6761,9 @@ sub generate_makefile ($$)
   verbatim ('common-targets');
 
   handle_clean ();
+  # This must really come late.
+  handle_subdirs;
+
   handle_factored_dependencies;
 
   # Comes last, because all the above procedures may have
similarity index 95%
rename from lib/am/subdirs.am
rename to lib/am/subdirs.mk
index aa1eef4669e19a3de10d6ac9c9136238a687f2e2..de1faa4a0636aeff8ef5a5abeb6b875570cc485e 100644 (file)
@@ -23,8 +23,8 @@ am__recursive_targets = \
   $(RECURSIVE_CLEAN_TARGETS) \
   $(am.recurs.extra-targets)
 
-## All documented targets which invoke 'make' recursively, or depend
-## on targets that do so.  GNUmakefile from gnulib depends on this.
+# All documented targets which invoke 'make' recursively, or depend
+# on targets that do so.  GNUmakefile from gnulib depends on this.
 AM_RECURSIVE_TARGETS += $(am__recursive_targets:-recursive=)
 
 .PHONY: $(am__recursive_targets)
@@ -72,4 +72,3 @@ mostlyclean: mostlyclean-recursive
 clean: clean-recursive
 distclean: distclean-recursive
 maintainer-clean: maintainer-clean-recursive
-