From: Stefano Lattarini Date: Tue, 24 Jul 2012 10:00:02 +0000 (+0200) Subject: [ng] rename: am__memoize -> am.memoize X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=747818be527c8a8361ee405743a808a576b93f7f;p=thirdparty%2Fautomake.git [ng] rename: am__memoize -> am.memoize Signed-off-by: Stefano Lattarini --- diff --git a/lib/am/compile.am b/lib/am/compile.am index ce235c0e6..f874550b7 100644 --- a/lib/am/compile.am +++ b/lib/am/compile.am @@ -16,7 +16,7 @@ if %?STDINC% AM_DEFAULT_INCLUDES = \ - $(call am__memoize,AM_DEFAULT_INCLUDES,$(strip \ + $(call am.memoize,AM_DEFAULT_INCLUDES,$(strip \ ## We want '-I. -I$(srcdir)', but the latter -I is redundant and ## unaesthetic in non-VPATH builds, so get rid of it if it is not ## actually needed. diff --git a/lib/am/distdir.am b/lib/am/distdir.am index 9179d9825..2312fd457 100644 --- a/lib/am/distdir.am +++ b/lib/am/distdir.am @@ -18,17 +18,17 @@ am.dist.common-files += %DIST-COMMON% ## Use 'sort', not 'am.util.uniq', for performance reasons. Luckily, we ## don't care in which order the distributed files are. -am.dist.all-files = $(call am__memoize,am.dist.all-files,$(strip $(sort \ +am.dist.all-files = $(call am.memoize,am.dist.all-files,$(strip $(sort \ $(am.dist.common-files) $(am.dist.sources) $(TEXINFOS) $(EXTRA_DIST)))) ## Try to avoid repeated slashes in the entries, to make the filtering ## in the 'am.dist.files-tmp2' definition below more reliable. ## This idiom should compress up to four consecutive '/' characters ## in each $(am.dist.all-files) entry. -am.dist.files-tmp1 = $(call am__memoize,am.dist.files-tmp1, \ +am.dist.files-tmp1 = $(call am.memoize,am.dist.files-tmp1, \ $(subst //,/,$(subst //,/,$(am.dist.all-files)))) -am.dist.files-tmp2 = $(call am__memoize,am.dist.files-tmp2, \ +am.dist.files-tmp2 = $(call am.memoize,am.dist.files-tmp2, \ ## Files filtered out here require an ad-hoc "munging"; see the two ## following 'patsubst's. $(filter-out $(srcdir)/% $(top_srcdir)/%, $(am.dist.files-tmp1)) \ @@ -55,7 +55,7 @@ am.dist.files-tmp2 = $(call am__memoize,am.dist.files-tmp2, \ ## Strip extra whitespaces, for more safety. am.dist.files-cooked = \ - $(call am__memoize,am.dist.files-cooked,$(strip $(am.dist.files-tmp2))) + $(call am.memoize,am.dist.files-cooked,$(strip $(am.dist.files-tmp2))) ## Given the pre-processing done above to the list of distributed files, ## this definition ensures that we won't try to create the wrong @@ -66,7 +66,7 @@ am.dist.files-cooked = \ ## "$(distdir)/$(srcdir)/subdir" -- which, in a VPATH build where ## "$(subdir) = ..", would be the build directory! am.dist.parent-dirs = \ - $(call am__memoize,am.dist.parent-dirs,$(strip $(sort \ + $(call am.memoize,am.dist.parent-dirs,$(strip $(sort \ $(filter-out ., $(patsubst ./%,%,$(dir $(am.dist.files-cooked))))))) am.mkdir-for-dist = \ diff --git a/lib/am/header-vars.am b/lib/am/header-vars.am index bf2ad731e..c70939881 100644 --- a/lib/am/header-vars.am +++ b/lib/am/header-vars.am @@ -229,8 +229,8 @@ am.util.canon = $(strip \ ## we can't afford to re-calculate it over and over every time the ## variable gets expanded. Example of usage: ## -## var1 = $(am__memoize,var1,$(shell EXPENSIVE-COMMAND-LINE)) -## var2 = $(am__memoize,var2,$(sort VERY-LONG-LIST)) +## var1 = $(am.memoize,var1,$(shell EXPENSIVE-COMMAND-LINE)) +## var2 = $(am.memoize,var2,$(sort VERY-LONG-LIST)) ## ## This API and implementation seems to work around a bug in GNU make ## (present up to and including version 3.82) which caused our first @@ -241,7 +241,7 @@ am.util.canon = $(strip \ ## ## So please don't change this without a very good reason. ## -am__memoize = $(or $(am__memoized_value/$1),$(strip \ +am.memoize = $(or $(am__memoized_value/$1),$(strip \ $(eval am__memoized_value/$1 := $$2))$(am__memoized_value/$1)) ## $(call am.util.strip-suffixes, SUFFIXES, LIST) diff --git a/lib/am/parallel-tests.am b/lib/am/parallel-tests.am index 6a365bf64..e730ec2d7 100644 --- a/lib/am/parallel-tests.am +++ b/lib/am/parallel-tests.am @@ -303,17 +303,17 @@ am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } # This supports runtime overriding of $(TESTS) and $(XFAIL_TESTS). !am__test_bases ?= \ -! $(call am__memoize,am__test_bases,$(call am__get_test_bases,$(TESTS))) +! $(call am.memoize,am__test_bases,$(call am__get_test_bases,$(TESTS))) am__xfail_test_bases = \ - $(call am__memoize,am__xfail_test_bases,$(call am__get_test_bases,$(XFAIL_TESTS))) + $(call am.memoize,am__xfail_test_bases,$(call am__get_test_bases,$(XFAIL_TESTS))) # The $(strip) is to work around the GNU make 3.80 bug where trailing # whitespace in "TESTS = foo.test $(empty)" causes $(TESTS_LOGS) to # erroneously expand to "foo.log .log". am__test_results = \ - $(call am__memoize,am__test_results,$(addsuffix .trs,$(strip $(am__test_bases)))) + $(call am.memoize,am__test_results,$(addsuffix .trs,$(strip $(am__test_bases)))) am__test_logs = \ - $(call am__memoize,am__test_logs,$(addsuffix .log,$(strip $(am__test_bases)))) + $(call am.memoize,am__test_logs,$(addsuffix .log,$(strip $(am__test_bases)))) am__mostlyclean_files += $(am__test_results) $(am__test_logs) diff --git a/t/memoize.tap b/t/memoize.tap index 587bd8728..d24a71172 100755 --- a/t/memoize.tap +++ b/t/memoize.tap @@ -52,7 +52,7 @@ tcount=0 T "basic usage" <<'END' -foo = $(call am__memoize,foo,ok) +foo = $(call am.memoize,foo,ok) test: test '$(foo)' = ok @@ -63,7 +63,7 @@ END T "variables expanding to blanks only (1)" <<'END' -foo = $(call am__memoize,foo,$(am.chars.empty) ) +foo = $(call am.memoize,foo,$(am.chars.empty) ) test: test '$(foo)' = ' ' @@ -75,7 +75,7 @@ END T "variables expanding to blanks only (2)" < t/pm/Cond2.pl) TESTS = $(wildcard t/pm/Cond2.pl) -am__test_bases = $(call am__memoize,am__test_bases,$(TESTS)) +am__test_bases = $(call am.memoize,am__test_bases,$(TESTS)) test: test '$(am__test_bases)' = 't/pm/Cond2.pl' @@ -320,7 +320,7 @@ for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do mv -f t1 t done -echo "list = \$(call am__memoize,list,$line \\" >> big.mk +echo "list = \$(call am.memoize,list,$line \\" >> big.mk cat t >> big.mk echo " $line)" >> big.mk