diff options
-rw-r--r-- | Makefile.am | 8 | ||||
-rw-r--r-- | configure.ac | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 318b801..d9db3e0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -70,3 +70,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) $(setxkbmap_CFLAGS) + +lint: + $(LINT) $(ALL_LINT_FLAGS) $(setxkbmap_SOURCES) +endif LINT diff --git a/configure.ac b/configure.ac index 608a5ef..9b0c022 100644 --- a/configure.ac +++ b/configure.ac @@ -43,6 +43,9 @@ PKG_CHECK_MODULES(SETXKBMAP, xkbfile x11) AC_SUBST(SETXKBMAP_CFLAGS) AC_SUBST(SETXKBMAP_LIBS) +# Allow checking code with lint, sparse, etc. +XORG_WITH_LINT + XORG_MANPAGE_SECTIONS XORG_RELEASE_VERSION |