From 0d1a2b7970c0eadb834fc2a6c3a68a09691b84ea Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 17 Dec 2008 19:29:54 -0800 Subject: Add hooks for checking sources with lint/sparse/etc. --- Makefile.am | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index ce7a262..9a09d88 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,7 +21,8 @@ bin_PROGRAMS = mkfontscale -AM_CFLAGS = @MKFONTSCALE_CFLAGS@ @X11_CFLAGS@ -D_BSD_SOURCE $(CWARNFLAGS) +AM_CPPFLAGS = @MKFONTSCALE_CFLAGS@ @X11_CFLAGS@ -D_BSD_SOURCE +AM_CFLAGS = $(CWARNFLAGS) mkfontscale_LDADD = @MKFONTSCALE_LIBS@ mkfontscale_SOURCES = \ @@ -73,3 +74,11 @@ ChangeLog: $(CHANGELOG_CMD) dist-hook: ChangeLog + +if LINT +ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) + +lint: + $(LINT) $(ALL_LINT_FLAGS) $(mkfontscale_SOURCES) +endif LINT -- cgit v1.2.3