$NetBSD: patch-Makefile,v 1.2 2014/08/10 08:21:46 wiz Exp $

Fix DESTDIR installation of config files.
http://5.150.254.56:443/trac-cppcheck/ticket/6043

--- Makefile.orig	2014-08-02 10:39:20.000000000 +0000
+++ Makefile
@@ -263,8 +263,8 @@ install: cppcheck
 	install cppcheck ${BIN}
 	install htmlreport/cppcheck-htmlreport ${BIN}
 ifdef CFGDIR 
-	install -d ${CFGDIR}
-	install -m 644 cfg/* ${CFGDIR}
+	install -d ${DESTDIR}${CFGDIR}
+	install -m 644 cfg/* ${DESTDIR}${CFGDIR}
 endif
 
 
