]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] rename: am__*clean_* -> am.clean.*.*
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 30 Jul 2012 19:57:47 +0000 (21:57 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 31 Jul 2012 02:39:19 +0000 (04:39 +0200)
More precisely, do these renames:

  am__mostlyclean_files  ->  am.clean.mostly.f
  am__clean_files        ->  am.clean.normal.f
  am__distclean_files    ->  am.clean.dist.f
  am__maintclean_files   ->  am.clean.maint.f

  am__mostlyclean_dirs   ->  am.clean.mostly.d
  am__clean_dirs         ->  am.clean.normal.d
  am__distclean_dirs     ->  am.clean.dist.d
  am__maintclean_dirs    ->  am.clean.maint.d

throughout the codebase.  Also ...

* syntax-checks.mk (typos-for-clean, sc_variable_typos_rules): Delete.
The new names make it both more difficult to have typos and more difficult
to detect them automatically, so keeping these maintainer checks is no
more worth the hassle.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
14 files changed:
lib/am/am-dir.am
lib/am/clean.am
lib/am/configure.am
lib/am/dejagnu.am
lib/am/java.am
lib/am/libs.am
lib/am/lisp.am
lib/am/ltlib.am
lib/am/parallel-tests.am
lib/am/progs.am
lib/am/tags.am
lib/am/texi-vers.am
lib/am/texinfos.am
syntax-checks.mk

index 23a955453a6df29fc9f8ab7d8d47b7c55a129734..af57f810d72e902f0a6f4086fa0cd7904fc95ec8 100644 (file)
@@ -34,7 +34,7 @@ am.top-dir = $(top_builddir)/$(am.dir)
 # Its counterpart with an absolute path and for use in subdir makefiles.
 am.top-dir.abs = $(abs_top_builddir)/$(am.dir)
 
-am__distclean_dirs += $(am.dir)
+am.clean.dist.d += $(am.dir)
 
 $(am.dir):
        @mkdir $@
index 8b6f57144826262a365e238754f987338d65d807..bc8315de2da0f79b2621f0b482f47656ad4bd74c 100644 (file)
 ## You should have received a copy of the GNU General Public License
 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-am__mostlyclean_files += $(MOSTLYCLEANFILES)
-am__clean_files       += $(CLEANFILES)
-am__distclean_files   += $(DISTCLEANFILES)
-am__maintclean_files  += $(MAINTAINERCLEANFILES)
+am.clean.mostly.f += $(MOSTLYCLEANFILES)
+am.clean.normal.f += $(CLEANFILES)
+am.clean.dist.f   += $(DISTCLEANFILES)
+am.clean.maint.f  += $(MAINTAINERCLEANFILES)
 
-am__mostlyclean_files += %MOSTLYCLEAN-FILES%
-am__clean_files       += %CLEAN-FILES%
-am__distclean_files   += %DISTCLEAN-FILES%
-am__maintclean_files  += %MAINTAINERCLEAN-FILES%
+am.clean.mostly.f += %MOSTLYCLEAN-FILES%
+am.clean.normal.f += %CLEAN-FILES%
+am.clean.dist.f   += %DISTCLEAN-FILES%
+am.clean.maint.f  += %MAINTAINERCLEAN-FILES%
 
-am__mostlyclean_dirs  += %MOSTLYCLEAN-DIRS%
-am__clean_dirs        += %CLEAN-DIRS%
-am__distclean_dirs    += %DISTCLEAN-DIRS%
-am__maintclean_dirs   += %MAINTAINERCLEAN-DIRS%
+am.clean.mostly.d += %MOSTLYCLEAN-DIRS%
+am.clean.normal.d += %CLEAN-DIRS%
+am.clean.dist.d   += %DISTCLEAN-DIRS%
+am.clean.maint.d  += %MAINTAINERCLEAN-DIRS%
 
-am__distclean_files += $(CONFIG_CLEAN_FILES)
+am.clean.dist.f += $(CONFIG_CLEAN_FILES)
 # Some files must be cleaned only in VPATH builds -- e.g., those linked
 # in usages like "AC_CONFIG_LINKS([GNUmakefile:GNUmakefile])".
-am__distclean_files += $(if $(filter .,$(srcdir)),,$(CONFIG_CLEAN_VPATH_FILES))
+am.clean.dist.f += $(if $(filter .,$(srcdir)),,$(CONFIG_CLEAN_VPATH_FILES))
 
 # Built sources are automatically removed by maintainer-clean.
 # This is what mainline Automake does.
-am__maintclean_files += $(BUILT_SOURCES)
+am.clean.maint.f += $(BUILT_SOURCES)
 
 mostlyclean-am: mostlyclean-generic
 mostlyclean-generic:
-       $(call am.clean-cmd.f,$(am__mostlyclean_files))
-       $(call am.clean-cmd.d,$(am__mostlyclean_dirs))
+       $(call am.clean-cmd.f,$(am.clean.mostly.f))
+       $(call am.clean-cmd.d,$(am.clean.mostly.d))
 
 clean-am: clean-generic mostlyclean-am
 clean-generic:
-       $(call am.clean-cmd.f,$(am__clean_files))
-       $(call am.clean-cmd.d,$(am__clean_dirs))
+       $(call am.clean-cmd.f,$(am.clean.normal.f))
+       $(call am.clean-cmd.d,$(am.clean.normal.d))
 
 distclean-am: distclean-generic clean-am
 distclean-generic:
-       $(call am.clean-cmd.f,$(am__distclean_files))
-       $(call am.clean-cmd.d,$(am__distclean_dirs))
+       $(call am.clean-cmd.f,$(am.clean.dist.f))
+       $(call am.clean-cmd.d,$(am.clean.dist.d))
 
 maintainer-clean-am: maintainer-clean-generic distclean-am
 maintainer-clean-generic:
-       $(call am.clean-cmd.f,$(am__maintclean_files))
-       $(call am.clean-cmd.d,$(am__maintclean_dirs))
+       $(call am.clean-cmd.f,$(am.clean.maint.f))
+       $(call am.clean-cmd.d,$(am.clean.maint.d))
 
 # Makefiles and their dependencies cannot be cleaned by an '-am'
 # dependency, because that would prevent other distclean dependencies
index 53990476a4232cd0db6a075a05e81da597296d26..67cad8dff6595c4bd2fae6df417b95c546979db6 100644 (file)
@@ -130,8 +130,8 @@ if %?TOPDIR_P%
 
 ## This variable is used in 'clean.am'.  See the comments to the
 ## 'distclean' and 'maintainer-clean' targets there to understand
-## why we cannot simply append this to $(am__distclean_files) or
-## $(am__maintclean_files).
+## why we cannot simply append this to $(am.clean.dist.f) or
+## $(am.clean.maint.f).
 am__config_distclean_files = \
   config.status \
   config.cache \
@@ -144,6 +144,6 @@ am__config_distclean_files = \
 ## If you have an autom4te.cache that cause distcheck to fail, then
 ## it is good news: you finally discovered that autoconf and/or
 ## autoheader is needed to use your tarball, which is wrong.
-am__maintclean_dirs += $(top_srcdir)/autom4te.cache
+am.clean.maint.d += $(top_srcdir)/autom4te.cache
 
 endif %?TOPDIR_P%
index cb5e8a3444ac2a321fdceae1ae1cb162fbc97511..42ba485c035f544d72cf0a367befb2cacd5a2958 100644 (file)
@@ -86,6 +86,6 @@ site.exp: Makefile $(EXTRA_DEJAGNU_SITE_CONFIG)
 ## FIXME: we clean these on "make distclean" only for better compatibility
 ## FIXME: with mainline Automake, but wouldn't be more correct to clean
 ## FIXME: them on "make clean" instead?
-am__distclean_files += site.exp site.bak
-am__distclean_files += $(addsuffix .sum,$(DEJATOOL))
-am__distclean_files += $(addsuffix .log,$(DEJATOOL))
+am.clean.dist.f += site.exp site.bak
+am.clean.dist.f += $(addsuffix .sum,$(DEJATOOL))
+am.clean.dist.f += $(addsuffix .log,$(DEJATOOL))
index 78493441c6b134bdf384811251db5fd33c47f343..0531bcfd87761951a0ddf38bc8a70397e4ecaa42 100644 (file)
@@ -80,9 +80,9 @@ endif %?INSTALL%
 
 ## Do not repeat the *.class wildcard over and over.
 if %?FIRST%
-am__clean_files += *.class
+am.clean.normal.f += *.class
 endif
-am__clean_files += class%NDIR%.stamp
+am.clean.normal.f += class%NDIR%.stamp
 
 
 ## -------------- ##
index 0e39fe90cf395dfd155bc15845ec210608529d48..10200efacdf45e98b6ef057b863650fd3ad158bb 100644 (file)
@@ -101,4 +101,4 @@ endif %?INSTALL%
 ## Cleaning.  ##
 ## ---------- ##
 
-am__clean_files += $(%DIR%_LIBRARIES)
+am.clean.normal.f += $(%DIR%_LIBRARIES)
index 84dd6968634dc246c9be6178d3ced36d099a5a60..cf9b8cf47d6aa487efcd3c239731fc0031c20dd8 100644 (file)
@@ -142,7 +142,7 @@ endif %?INSTALL%
 ## Cleaning.  ##
 ## ---------- ##
 
-am__clean_files += elc-stamp $(ELCFILES)
+am.clean.normal.f += elc-stamp $(ELCFILES)
 
 ## -------------- ##
 ## Distributing.  ##
index 00928f3ef3b7c2d607f54bc81fbee62cf8ddbebd..794c4c2a99845bcde4a97be27478e284617b756d 100644 (file)
@@ -107,8 +107,8 @@ endif %?INSTALL%
 ## Cleaning.  ##
 ## ---------- ##
 
-am__clean_files += $(%DIR%_LTLIBRARIES)
+am.clean.normal.f += $(%DIR%_LTLIBRARIES)
 ## 'so_locations' files are created by some linkers (IRIX, OSF) when
 ## building a shared object.  Libtool places these files in the
 ## directory where the shared object is created.
-am__clean_files += $(wildcard $(addsuffix so_locations,$(sort $(dir $(%DIR%_LTLIBRARIES)))))
+am.clean.normal.f += $(wildcard $(addsuffix so_locations,$(sort $(dir $(%DIR%_LTLIBRARIES)))))
index 5297c6735fc60b608b73ec6057729cd6bc3cefe8..20a70e55577cc4b26860a53e55402a1d03c06ece 100644 (file)
@@ -287,7 +287,7 @@ am.test-suite.test-results = \
 am.test-suite.test-logs = \
   $(call am.memoize,am.test-suite.test-logs,$(addsuffix .log,$(strip $(am.test-suite.test-bases))))
 
-am__mostlyclean_files += $(am.test-suite.test-results) $(am.test-suite.test-logs)
+am.clean.mostly.f += $(am.test-suite.test-results) $(am.test-suite.test-logs)
 
 # $(TEST_LOGS) is a published interface.
 TEST_LOGS = $(am.test-suite.test-logs)
@@ -415,7 +415,7 @@ $(TEST_SUITE_LOG): $(am.test-suite.test-logs) $(am.test-suite.test-results)
        fi;                                                             \
        $$success || exit 1
 
-am__mostlyclean_files += $(TEST_SUITE_LOG)
+am.clean.mostly.f += $(TEST_SUITE_LOG)
 
 ## ------------------------------------------ ##
 ## Running all tests, or rechecking failures. ##
index 66ecc3d2fbd728cddbafac4c1cd03ea5d5c494a6..6dac5a8a726847685b8db7e7e9c61a556729f1d6 100644 (file)
@@ -103,7 +103,7 @@ endif %?INSTALL%
 ## Cleaning.  ##
 ## ---------- ##
 
-am__clean_files += $(%DIR%_PROGRAMS)
+am.clean.normal.f += $(%DIR%_PROGRAMS)
 ## Under Cygwin, we build 'program$(EXEEXT)'.  However, if this
 ## program uses a Libtool library, Libtool will move it in
 ## '_libs/program$(EXEEXT)' and create a 'program' wrapper (without
@@ -112,7 +112,7 @@ am__clean_files += $(%DIR%_PROGRAMS)
 ## Cleaning the '_libs/' or '.libs/' directory is done from clean-libtool.
 ## FIXME: In the future (i.e., when it works) it would be nice to delegate
 ## this task to "libtool --mode=clean".
-?LIBTOOL?am__clean_files += $(if $(EXEEXT),$(patsubst %$(EXEEXT),%,$(%DIR%_PROGRAMS)))
+?LIBTOOL?am.clean.normal.f += $(if $(EXEEXT),$(patsubst %$(EXEEXT),%,$(%DIR%_PROGRAMS)))
 
 ## ---------- ##
 ## Checking.  ##
index 1db4139a0b091e58b862fa3eb64817d7fc3b7671..c2887d8f65734daf52dd7b08dffae21a5d975422 100644 (file)
@@ -173,7 +173,7 @@ cscopelist-am: $(am__tagged_files)
 ## Cleaning.  ##
 ## ---------- ##
 
-am__distclean_files += TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+am.clean.dist.f += TAGS ID GTAGS GRTAGS GSYMS GPATH tags
 if %?TOPDIR_P%
-am__distclean_files += cscope.out cscope.in.out cscope.po.out cscope.files
+am.clean.dist.f += cscope.out cscope.in.out cscope.po.out cscope.files
 endif %?TOPDIR_P%
index 1053dcd73fdce911360e7cb80c8846b17416c61b..afacbc88db16a52795be4a6b9e26e6fe8175bd94 100644 (file)
@@ -40,5 +40,5 @@ am.dist.common-files += %VTEXI% %STAMPVTI%
        fi;
        @cp %VTEXI% $@
 
-am__mostlyclean_files += %VTI%.tmp
-%MAINTAINER-MODE%am__maintclean_files += %STAMPVTI% %VTEXI%
+am.clean.mostly.f += %VTI%.tmp
+%MAINTAINER-MODE%am.clean.maint.f += %STAMPVTI% %VTEXI%
index b7efd82635d99c9ce397a233021f4bba4998ca43..1fbd50574f4935208956fdc6d28ff1663f4d7dab 100644 (file)
@@ -302,10 +302,10 @@ if %?LOCAL-TEXIS%
 ## Append to dirs, not files, because the %*CLEAN% substitutions can
 ## also contain any directory created by "makeinfo --html", as well as
 ## the '*.t2d' and '*.t2p' directories used by texi2dvi and texi2pdf.
-am__mostlyclean_dirs += %MOSTLYCLEAN%
-am__clean_dirs += %TEXICLEAN%
-am__maintclean_dirs += %MAINTCLEAN%
+am.clean.mostly.d += %MOSTLYCLEAN%
+am.clean.normal.d += %TEXICLEAN%
+am.clean.maint.d += %MAINTCLEAN%
 
-am__maintclean_files += $(foreach f,$(INFO_DEPS),$f $f-[0-9] $f-[0-9][0-9])
+am.clean.maint.f += $(foreach f,$(INFO_DEPS),$f $f-[0-9] $f-[0-9][0-9])
 
 endif %?LOCAL-TEXIS%
index fc1a868c33efc4c793ecef9306a5d65c5bc2adf0..7662d6fed46f6be2e3adc351be7687309e577077 100644 (file)
@@ -351,45 +351,6 @@ $(sc_renamed_variables_rules): sc_no_% :
          exit 1; \
        fi
 
-# Variables whose name is prone to typos.
-
-define typos-for-clean
-
-fixtypo.am__mostlyclean$1 = am__mostlyclean_$1
-fixtypo.am__clean$1 = am__clean_$1
-fixtypo.am__distclean$1 = am__distclean_$1
-fixtypo.am__maintclean$1 = am__maintclean_$1
-
-fixtypo.am__mostly_clean_$1 = am__mostlyclean_$1
-fixtypo.am__dist_clean_$1 = am__distclean_$1
-
-fixtypo.am__maint_clean_$1 = am__maintclean_$1
-fixtypo.am__maintainerclean_$1 = am__maintclean_$1
-fixtypo.am__maintainer_clean_$1 = am__maintclean_$1
-
-endef
-
-$(eval $(call typos-for-clean,files))
-$(eval $(call typos-for-clean,dirs))
-
-sc_variables_typos_rules = \
-  $(patsubst fixtypo.%,sc_no_%,$(filter fixtypo.%,$(.VARIABLES)))
-
-$(sc_variable_typos_rules) : sc_no_% :
-       @files="\
-         $(xtests) \
-         $(pms) \
-         $(ams) \
-         $(srcdir)/automake.in \
-         $(srcdir)/doc/*.texi \
-       "; \
-       if grep -E '\b$*\b' $$files; then \
-         echo "'\$$($*)' is probably a typo." >&2; \
-         echo "You should use '$(fixtypo.$*)' instead." >&2; \
-         exit 1; \
-       fi
-
-
 sc_no_RECHECK_LOGS:
        @files="\
          $(xtests) \