* top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
(syntax-check-rules): Use it.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ fix sed script reading maint.mk
+ * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
+ (syntax-check-rules): Use it.
+
2008-12-09 Bruno Haible <bruno@clisp.org>
* m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
# along with this program. If not, see <http://www.gnu.org/licenses/>.
ME := maint.mk
+MYSELF := $(srcdir)/$(ME)
# List of all C-like source code files that will be tested for
# stylistic "errors". You may want to define this to something
exit 1; } || :
# Collect the names of rules starting with `sc_'.
-syntax-check-rules := $(shell sed -n 's/^\(sc_[a-zA-Z0-9_-]*\):.*/\1/p' $(ME))
+syntax-check-rules := \
+ $(shell sed -n 's/^\(sc_[a-zA-Z0-9_-]*\):.*/\1/p' $(MYSELF))
.PHONY: $(syntax-check-rules)
syntax-check: $(syntax-check-rules)