Mercurial > hg > octave-kai > gnulib-hg
changeset 10865:4e1b88600ad7
fix sed script reading maint.mk
* top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
(syntax-check-rules): Use it.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
---|---|
date | Tue, 09 Dec 2008 19:43:57 +0100 |
parents | 26d49364e8a1 |
children | 71e6ee885536 |
files | ChangeLog top/maint.mk |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +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
--- a/top/maint.mk +++ b/top/maint.mk @@ -18,6 +18,7 @@ # 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 @@ -100,7 +101,8 @@ 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)