diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-07-17 13:01:07 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-07-17 13:01:07 -0700 |
commit | e1cb231b31be520b76aeb72acc1af9ff6682fa9d (patch) | |
tree | 8e92db122dbe9d43c28ca41c835bc90eb803a3f6 /Makefile.am | |
parent | eda127631001674cd40466fddb5225e618c2a327 (diff) |
Add hooks for checking source code with lint/sparse/etc.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index aedac7d..6c43dd3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -79,3 +79,11 @@ ChangeLog: (GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2) dist-hook: ChangeLog + +if LINT +ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) + +lint: + $(LINT) $(ALL_LINT_FLAGS) $(AM_CFLAGS) $(xmodmap_SOURCES) +endif LINT |