Commit 35bdbec3 authored by Michele Tartara's avatar Michele Tartara

Create check-news Makefile target

Checking the correctness of the NEWS file syntax is an important part of the
check process, but up to now it was only possible as part of a bigger set of
tests. This commit creates a Makefile target to run that independently.

The developer notes are updated to document this new target.
Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
Reviewed-by: default avatarJose A. Lopes <jabolopes@google.com>
parent 5b2dbea8
......@@ -2026,12 +2026,15 @@ check-dirs: $(GENERATED_FILES)
test -z "$$error"; \
}
.PHONY: check-news
check-news:
RELEASE=$(PACKAGE_VERSION) $(CHECK_NEWS) < $(top_srcdir)/NEWS
.PHONY: check-local
check-local: check-dirs $(GENERATED_FILES)
check-local: check-dirs check-news $(GENERATED_FILES)
$(CHECK_PYTHON_CODE) $(check_python_code)
PYTHONPATH=. $(CHECK_HEADER) $(check_python_code)
$(CHECK_VERSION) $(VERSION) $(top_srcdir)/NEWS
RELEASE=$(PACKAGE_VERSION) $(CHECK_NEWS) < $(top_srcdir)/NEWS
PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(CHECK_IMPORTS) . $(standalone_python_modules)
error= ; \
if [ "x`echo $(VERSION_SUFFIX)|grep 'alpha'`" == "x" ]; then \
......
......@@ -214,6 +214,10 @@ for example::
$ make hs-shell-{balancing,basic}
Checking for the correct style of the NEWS file is also possible, by running::
$ make check-news
Packaging notes
===============
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment