X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=top%2Fmaint.mk;h=3177d577a59f50fcd0895fc0918cbc9506e09b6f;hb=2ede8c54f675ca2732ad4f11df88c697c680f049;hp=3756ee87101182409656feb61c86d9ec2cdbc80e;hpb=915d9ab294ec0675329b94eaf19a8074a641488a;p=gnulib.git diff --git a/top/maint.mk b/top/maint.mk index 3756ee871..3177d577a 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -2,7 +2,7 @@ # This Makefile fragment is intended to be useful by any GNU-like project. # This file originate from coreutils, CPPI, Bison, and Autoconf. -# Copyright (C) 2001-2008 Free Software Foundation, Inc. +# Copyright (C) 2001-2009 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -18,6 +18,7 @@ # along with this program. If not, see . 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 @@ sc_changelog: 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) @@ -108,15 +110,15 @@ syntax-check: $(syntax-check-rules) # Code Coverage init-coverage: - make clean + $(MAKE) $(AM_MAKEFLAGS) clean lcov --directory . --zerocounters COVERAGE_CCOPTS ?= "-g --coverage" COVERAGE_OUT ?= doc/coverage build-coverage: - make CFLAGS=$(COVERAGE_CCOPTS) CXXFLAGS=$(COVERAGE_CCOPTS) - make CFLAGS=$(COVERAGE_CCOPTS) CXXFLAGS=$(COVERAGE_CCOPTS) check + $(MAKE) $(AM_MAKEFLAGS) CFLAGS=$(COVERAGE_CCOPTS) CXXFLAGS=$(COVERAGE_CCOPTS) + $(MAKE) $(AM_MAKEFLAGS) CFLAGS=$(COVERAGE_CCOPTS) CXXFLAGS=$(COVERAGE_CCOPTS) check mkdir -p $(COVERAGE_OUT) lcov --directory . --output-file $(COVERAGE_OUT)/$(PACKAGE).info \ --capture