maint.mk: tweak new rule's name not to impinge
authorJim Meyering <meyering@redhat.com>
Mon, 9 May 2011 11:27:55 +0000 (13:27 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 9 May 2011 11:27:55 +0000 (13:27 +0200)
* top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
(sc_tight_scope): Use new rule name rather than $@-0.

ChangeLog
top/maint.mk

index 7feeba0..22442c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-05-09  Jim Meyering  <meyering@redhat.com>
 
+       maint.mk: tweak new rule's name not to impinge
+       * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
+       (sc_tight_scope): Use new rule name rather than $@-0.
+
        maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
        * top/maint.mk (sc_tight_scope): New rule.
        (sc_tight_scope-0): New rule, ifdef'd out.
index 793915c..1cc3ca2 100644 (file)
@@ -1334,8 +1334,8 @@ _gl_TS_dir ?= src
 ALL_RECURSIVE_TARGETS += sc_tight_scope
 sc_tight_scope: tight-scope.mk
        @grep noinst_HEADERS $(_gl_TS_dir)/Makefile.am > /dev/null 2>&1 \
-         && $(MAKE) -s -C $(_gl_TS_dir)                                \
-             -f Makefile -f '$(abs_srcdir)/tight-scope.mk' $@-0        \
+         && $(MAKE) -s -C $(_gl_TS_dir) -f Makefile                    \
+             -f '$(abs_srcdir)/tight-scope.mk' _gl_tight_scope
          || :
        @rm -f $<
 
@@ -1358,8 +1358,8 @@ _gl_TS_function_regex ?= \
 # Without gnulib's progname module, you might put program_name here.
 _gl_TS_unmarked_extern_vars ?=
 _gl_TS_var_regex ?= ^(?:extern|XTERN) .*?\**(\w+)(\[.*?\])?;
-.PHONY: sc_tight_scope-0
-sc_tight_scope-0: $(bin_PROGRAMS)
+.PHONY: _gl_tight_scope
+_gl_tight_scope: $(bin_PROGRAMS)
        t=exceptions-$$$$;                                              \
        trap 's=$$?; rm -f $$t; exit $$s' 0;                            \
        for sig in 1 2 3 13 15; do                                      \