libidav/Makefile

changeset 287
99bcd7915a0d
parent 185
cd42cccee550
child 322
d2ca9c2a2fac
--- a/libidav/Makefile	Tue Aug 22 17:48:17 2017 +0200
+++ b/libidav/Makefile	Thu Aug 31 12:44:25 2017 +0200
@@ -26,7 +26,10 @@
 # POSSIBILITY OF SUCH DAMAGE.
 #
 
+ifdef CONF
 include ../$(CONF).mk
+endif
+include ../cppcheck.mk
 
 # list of source files
 SRC  = webdav.c
@@ -48,5 +51,6 @@
 ../build/libidav/%$(OBJ_EXT): %.c
 	$(CC) $(CFLAGS) $(DAV_CFLAGS) -I../ $(COFLAGS)$@ $<
 
-../build/idav:
-	$(MKDIR) $(MKDIRFLAGS) ../build/idav
+cppcheck: $(SRC)
+	$(CPPCHECK) $(CPPCHECK_CONFIG) $(CPPCHECK_FLAGS) -I../ $+ 2>> ../$(CPPCHECK_LOG)
+

mercurial