From 752b793aa03b67eeff6b01c7f0bdb729f00bd49b Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 19 Mar 2007 19:09:27 -0700 Subject: Add support for checking sources with sparse/lint/etc. --- Makefile.am | 8 ++++++++ configure.ac | 3 +++ 2 files changed, 11 insertions(+) diff --git a/Makefile.am b/Makefile.am index e45c79a..cdf2bac 100644 --- a/Makefile.am +++ b/Makefile.am @@ -92,3 +92,11 @@ SUFFIXES = .$(APP_MAN_SUFFIX) .man .man.$(APP_MAN_SUFFIX): sed $(MAN_SUBSTS) < $< > $@ + +if LINT +ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) + +lint: + $(LINT) $(ALL_LINT_FLAGS) $(AM_CFLAGS) $(xdpyinfo_SOURCES) +endif LINT diff --git a/configure.ac b/configure.ac index c9be18a..825ddd0 100644 --- a/configure.ac +++ b/configure.ac @@ -109,6 +109,9 @@ PKG_CHECK_MODULES(DPY_XTST, xtst, AC_CHECK_HEADERS([X11/extensions/record.h],,,[#include ]) CPPFLAGS="$SAVE_CPPFLAGS"],[echo "not found"]) +dnl Allow checking code with lint, sparse, etc. +XORG_WITH_LINT + XORG_MANPAGE_SECTIONS XORG_RELEASE_VERSION -- cgit v1.2.3