diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-08-10 11:43:04 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-08-10 11:43:04 -0700 |
commit | 2d7dc57ae1d5e0af6e6ecb70764c512f6d518d6a (patch) | |
tree | e11d8767539779d10237977e3818fbbf9b08e4bd | |
parent | 7b3c0c95b9bb223ae779b8bf0c7d78967e0dcd9e (diff) |
Add hooks to check sources with lint/sparse/etc.
-rw-r--r-- | Makefile.am | 8 | ||||
-rw-r--r-- | configure.ac | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index dd03754..e4fc5ad 100644 --- a/Makefile.am +++ b/Makefile.am @@ -71,3 +71,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) $(AM_CFLAGS) + +lint: + $(LINT) $(ALL_LINT_FLAGS) $(xprop_SOURCES) +endif LINT diff --git a/configure.ac b/configure.ac index 3de9c3a..70f7852 100644 --- a/configure.ac +++ b/configure.ac @@ -28,6 +28,10 @@ AM_MAINTAINER_MODE AM_CONFIG_HEADER(config.h) +# Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro +m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])]) +XORG_MACROS_VERSION(1.1) + AC_PROG_CC AC_PROG_INSTALL @@ -36,6 +40,7 @@ PKG_CHECK_MODULES(XPROP, xmuu x11) AC_SUBST(XPROP_CFLAGS) AC_SUBST(XPROP_LIBS) +XORG_WITH_LINT XORG_MANPAGE_SECTIONS XORG_RELEASE_VERSION |