X-Git-Url: https://jxself.org/git/?p=wumpus.git;a=blobdiff_plain;f=Makefile;h=bbd26698f3a78c77e912723e28c1c82792dc569f;hp=c9c1b925554287f6eb065b593be9c8adfeb7082d;hb=d4030968a8de46efd4658dacd591fe8de37102c2;hpb=3f3380d7809aa53ff8d00235e6d30947ec3ec0e8 diff --git a/Makefile b/Makefile index c9c1b92..bbd2669 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ superhack: superhack.c clean: rm -f wumpus wumpus.o superhack superhack.o TAGS - rm -f *~ *.1 *.html *.tar.gz MANIFEST SHIPPER.* + rm -f *~ *.1 *.html *.tar.gz MANIFEST TAGS: etags wumpus.c @@ -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)) @@ -43,4 +48,4 @@ wumpus-$(VERS).tar.gz: $(SOURCES) wumpus.6 dist: wumpus-$(VERS).tar.gz release: wumpus-$(VERS).tar.gz wumpus.html - shipper -u -m -t; make clean + shipper version=$(VERS) | sh -e -x