]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Merge branch 'ng/dirstamp' into ng/master
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 24 May 2012 07:56:20 +0000 (09:56 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 24 May 2012 07:56:20 +0000 (09:56 +0200)
* ng/dirstamp:
  [ng] dirstamp: remove, use inlined parent directory creation instead

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
1  2 
automake.in
lib/am/header-vars.am
lib/am/texi-vers.am
lib/am/texibuild.am

diff --cc automake.in
index 7b0ac7a42203349fdd1fae89cc02b720c8bf56f9,e61bfbd12a70afda2c95224566f5f365547d5ebf..ab37fc7c6a3e6ed0bb2c68212cf3bb552f5dbf5e
@@@ -6655,8 -6712,9 +6614,9 @@@ sub preprocess_file ($%
  
                 'LIBTOOL'      => !! var ('LIBTOOL'),
                 'NONLIBTOOL'   => 1,
 -
 +                 'HANDLE-EXEEXT' => (exists $configure_vars{'EXEEXT'} ?
 +                                     'TRUE' : 'FALSE'),
+                'SILENT'       => silent_flag (),
 -
                %transform);
  
    if (! defined ($_ = $am_file_cache{$file}))
index 79dde9ca62e341e1d51363ff6096cadcaf4965fe,522dfc08035c84a125522164fd10e83a525b6686..3b6ff6ed8c99328d4fd3b75becdbd16f9abb121e
  
  VPATH = @srcdir@
  
 +## Makefiles generated by Automake-NG require GNU make >= 3.81.
 +## The .FEATURES special variable has been introduced in that make
 +## version, so use it as a witness to determine whether the current
 +## make is good enough.
 +$(if $(.FEATURES),, \
 +  $(error Automake-NG based builds require GNU make 3.81 or later))
 +
+ am__mkdir = test -d $1 || $(MKDIR_P) $1
+ # In a recipe, ensure the given directory exists, creating it if
+ # necessary; but tries to do so avoiding useless forks, stats, and
+ # extra recipe text (the latter is useful when doing "make V=1").
+ # If the target has no directory component, or if the parent
+ # directory of the target already exists, we have nothing to do, so
+ # try to optimize for those cases -- especially because, for our
+ # usage patterns, one of them should always be true in non-VPATH
+ # builds.
+ am__ensure_dir_exists = \
+   $(if $(filter .,$1),:,$(if $(wildcard $1/),:,$(call am__mkdir,$1)))
+ # Ensure the directory containing the target of the current recipe
+ # exists, by creating it if necessary.
+ am__ensure_target_dir_exists = $(call am__ensure_dir_exists,$(@D))
  ## The 'all' target must be the default one, independently from the
  ## position it is declared in the output Makefile.
  .DEFAULT_GOAL := all
index c930f206f316cda1619c2b56e3b2133eb6a02cb8,bdaf900f43d1835b4d40c654ca56dbd22d8cff90..78c107dd7828f99de9c5f4989e9ddea1bd0e393a
@@@ -27,12 -27,9 +27,8 @@@ am__dist_common += %VTEXI% %STAMPVTI
  ## (Not configure.ac, because not all setups define the version number
  ## in this file.)
  %STAMPVTI%: %TEXI% $(top_srcdir)/configure
- ## It is wrong to have %STAMPVTI% dependent on %DIRSTAMP%, because
- ## %STAMPVTI% is distributed and %DIRSTAMP% isn't: a distributed file
- ## should never be dependent upon a non-distributed built file.
- ## Therefore we ensure that %DIRSTAMP% exists in the rule.
- ?DIRSTAMP?    test -f %DIRSTAMP% || $(MAKE) %DIRSTAMP%
+       @$(am__ensure_target_dir_exists)
 -      @(dir=.; test -f ./%TEXI% || dir=$(srcdir); \
 -      set `$(SHELL) %MDDIR%mdate-sh $$dir/%TEXI%`; \
 +      @(set `$(SHELL) %MDDIR%mdate-sh $<`; \
        echo "@set UPDATED $$1 $$2 $$3"; \
        echo "@set UPDATED-MONTH $$2 $$3"; \
        echo "@set EDITION $(VERSION)"; \
index 088b857046122fad981c4d4cc04873aa9c9eb28c,01a737f85a9aa34fa6a32ebf5cf9de4a46018c2f..4fb196b508401c4cd7d9cf0aceb0ba1b0a1b6d33
@@@ -67,11 -67,13 +63,12 @@@ INFO_DEPS += %DEST_INFO_PREFIX%%DEST_SU
  ## Use '--clean' to avoid leaving auxiliary files behind cluttering the build
  ## directory (see automake bug#11146).  We should start using '--tidy' when we
  ## can assume Texinf 4.9 or later.
 -?GENERIC?     $(TEXI2DVI) %TEXIQUIET% --clean %SOURCE% %TEXIDEVNULL%
 -?!GENERIC?    $(TEXI2DVI) %TEXIQUIET% --clean -o $@ `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% %TEXIDEVNULL%
 +      $(TEXI2DVI) %TEXIQUIET% --clean -o $@ $< %TEXIDEVNULL%
  
  ?GENERIC?%.pdf: %%SOURCE_SUFFIX%
- ?!GENERIC?%DEST_PREFIX%.pdf: %SOURCE% %DEPS% %DIRSTAMP%
-       %AM_V_TEXI2PDF%TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
+ ?!GENERIC?%DEST_PREFIX%.pdf: %SOURCE% %DEPS%
+       %AM_V_TEXI2PDF%$(am__ensure_target_dir_exists) && \
+       TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
  ## Must set MAKEINFO like this so that version.texi will be found even
  ## if it is in srcdir (-I $(srcdir) is set in %MAKEINFOFLAGS%).
        MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) %MAKEINFOFLAGS%' \
  ## Use '--clean' to avoid leaving auxiliary files behind cluttering the build
  ## directory (see automake bug#11146).  We should start using '--tidy' when we
  ## can assume Texinf 4.9 or later.
 -?GENERIC?     $(TEXI2PDF) %TEXIQUIET% --clean %SOURCE% %TEXIDEVNULL%
 -?!GENERIC?    $(TEXI2PDF) %TEXIQUIET% --clean -o $@ `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% %TEXIDEVNULL%
 +      $(TEXI2PDF) %TEXIQUIET% --clean -o $@ $< %TEXIDEVNULL%
  
  ?GENERIC?%.html: %%SOURCE_SUFFIX%
- ?!GENERIC?%DEST_PREFIX%.html: %SOURCE% %DEPS% %DIRSTAMP%
+ ?!GENERIC?%DEST_PREFIX%.html: %SOURCE% %DEPS%
+       %SILENT%$(am__ensure_target_dir_exists)
  ## When --split (the default) is used, makeinfo will output a
  ## directory.  However it will not update the time stamp of a
  ## previously existing directory, and when the names of the nodes