summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-04-24 20:03:51 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-04-24 20:03:51 -0700
commit7206fb39a668384dfba3c8436222722123f4c9ff (patch)
treeefebf4642de24b55559198e46524f441b5f380b9
parentc42df278513724e3236eecda859f069c34f78508 (diff)
Add target for checking code with sparse/lint/etc.
-rw-r--r--Makefile.am8
-rw-r--r--configure.ac1
2 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index a7e88be..0db86a1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -63,3 +63,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) $(bdftopcf_CFLAGS)
+
+lint:
+ $(LINT) $(ALL_LINT_FLAGS) $(bdftopcf_SOURCES)
+endif LINT
diff --git a/configure.ac b/configure.ac
index 29fc961..99789b3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,6 +35,7 @@ PKG_CHECK_MODULES(BDFTOPCF, xfont)
AC_SUBST(BDFTOPCF_CFLAGS)
AC_SUBST(BDFTOPCF_LIBS)
+XORG_WITH_LINT
XORG_MANPAGE_SECTIONS
XORG_RELEASE_VERSION