From: Eric S. Raymond Date: Thu, 5 Jun 2014 18:31:29 +0000 (-0400) Subject: Added code auditing with cppcheck. X-Git-Tag: 1.6~7 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=fa3ebc616beb57ea4b7825e22b8f299b0db35fe2;p=wumpus.git Added code auditing with cppcheck. --- diff --git a/Makefile b/Makefile index f924ccb..bbd2669 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,11 @@ uninstall: rm /usr/bin/wumpus /usr/bin/superhack rm /usr/share/man/man6/wumpus.6 +CPPCHECKOPTS = +cppcheck: + cppcheck -DREVISION=$(VERS) $(CPPCHECKOPTS) wumpus.c + cppcheck -DREVISION=$(VERS) $(CPPCHECKOPTS) superhack.c + wumpus-$(VERS).tar.gz: $(SOURCES) wumpus.6 @ls $(SOURCES) wumpus.6 | sed s:^:wumpus-$(VERS)/: >MANIFEST @(cd ..; ln -s wumpus wumpus-$(VERS))