summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-12-17 19:29:54 -0800
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-12-17 19:29:54 -0800
commit0d1a2b7970c0eadb834fc2a6c3a68a09691b84ea (patch)
tree576d7f8dbb228cdc144d01b084b39a83a653a8f5 /Makefile.am
parent3ae585a3f08cb660c6ce6838557c94f88821b7a5 (diff)
Add hooks for checking sources with lint/sparse/etc.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am11
1 files changed, 10 insertions, 1 deletions
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