Makefile

changeset 246
21bb9849a765
parent 230
4044131874f9
child 250
b7d1317b138e
     1.1 --- a/Makefile	Sat Jul 15 22:36:29 2017 +0200
     1.2 +++ b/Makefile	Tue Sep 19 14:13:40 2017 +0200
     1.3 @@ -40,6 +40,7 @@
     1.4  PREFIX=/usr/local
     1.5  
     1.6  include $(CONF).mk
     1.7 +include cppcheck.mk
     1.8  
     1.9  all: ucx test
    1.10  
    1.11 @@ -81,6 +82,14 @@
    1.12  
    1.13  clean: FORCE
    1.14  	$(RM) $(RMFLAGS) build
    1.15 +	
    1.16 +build:
    1.17 +	mkdir -p build
    1.18 +	
    1.19 +cppcheck: FORCE build
    1.20 +	truncate -s0 $(CPPCHECK_LOG)
    1.21 +	cd ucx; $(MAKE) CONF=$(CONF) cppcheck
    1.22 +	@echo "Static code analysis complete. See $(CPPCHECK_LOG) for the results."
    1.23  
    1.24  FORCE:
    1.25  

mercurial