From f5eb468f0ca87917488bdd8bdecf9e31fce88945 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 17 Apr 2007 11:17:13 -0700 Subject: Add rules for checking code with sparse/lint/etc. --- Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile.am') 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 -- cgit v1.2.3