Makefile

changeset 246
21bb9849a765
parent 230
4044131874f9
child 250
b7d1317b138e
--- a/Makefile	Sat Jul 15 22:36:29 2017 +0200
+++ b/Makefile	Tue Sep 19 14:13:40 2017 +0200
@@ -40,6 +40,7 @@
 PREFIX=/usr/local
 
 include $(CONF).mk
+include cppcheck.mk
 
 all: ucx test
 
@@ -81,6 +82,14 @@
 
 clean: FORCE
 	$(RM) $(RMFLAGS) build
+	
+build:
+	mkdir -p build
+	
+cppcheck: FORCE build
+	truncate -s0 $(CPPCHECK_LOG)
+	cd ucx; $(MAKE) CONF=$(CONF) cppcheck
+	@echo "Static code analysis complete. See $(CPPCHECK_LOG) for the results."
 
 FORCE:
 

mercurial