Commit 191ff68c authored by Iustin Pop's avatar Iustin Pop

Move hlint rule to the main Makefile

Since we do have errors currently, this is not enabled from the main
'make lint' rule. That will get cleaned up later.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent ec8379bd
......@@ -60,6 +60,7 @@
/doc/install-quick.rst
/doc/news.rst
/doc/upgrade.rst
/doc/hs-lint.html
/doc/*.in
/doc/*.png
......
......@@ -126,7 +126,8 @@ CLEANFILES = \
stamp-srclinks \
$(nodist_pkgpython_PYTHON) \
$(HALLPROGS) $(HSRCS2) \
.hpc/*.mix htools/*.tix
.hpc/*.mix htools/*.tix \
doc/hs-lint.html
# BUILT_SOURCES should only be used as a dependency on phony targets. Otherwise
# it'll cause the target to rebuild every time.
......@@ -943,6 +944,11 @@ lint: $(BUILT_SOURCES)
PYTHONPATH=$(abs_top_srcdir) $(PYLINT) $(LINT_OPTS) \
--rcfile ../pylintrc $(patsubst qa/%.py,%,$(qa_scripts))
.PHONY: hlint
hlint: $(HSRCS2)
if tty -s; then C="-c"; else C=""; fi; \
hlint --report=doc/hs-lint.html $$C htools
# a dist hook rule for updating the vcs-version file; this is
# hardcoded due to where it needs to build the file...
dist-hook:
......
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