seamus

commit c364e2e52c9a59c984216c22b587995d72e340dd

Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>

all: add lint/cppchecker

 Makefile | 6 +++++-


diff --git a/Makefile b/Makefile
index bc8603744723faa8e61210a2f2b71145c8602b06..cc51831989cdfa2f47cb6a083bf07db59591fd39 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,10 @@ 	@grep $< $(OUTDIR)/cppcache >/dev/null || \
 		$(CPP) $(CFLAGS) -MM -MT $@ $< >> $(OUTDIR)/cppcache
 	@$(CC) -c $(CFLAGS) -o $@ $<
 
+lint:
+	cppcheck --enable=all --std=c11 --suppress=missingIncludeSystem \
+		-I include src/*.c
+
 clean:
 	@rm -f seamus $(seamus_objects)
 
@@ -29,4 +33,4 @@ 		$(DESTDIR)$(BINDIR) \
 		$(DESTDIR)$(SHAREDIR)/seamus
 	install -m755 seamus $(DESTDIR)$(BINDIR)/seamus
 
-.PHONY: clean distclean install
+.PHONY: clean distclean install lint