File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -261,6 +261,10 @@ install: cppcheck
261261 install -d ${BIN}
262262 install cppcheck ${BIN}
263263 install htmlreport/cppcheck-htmlreport ${BIN}
264+ ifdef CFGDIR
265+ install -d ${CFGDIR}
266+ install -m 644 cfg/* ${CFGDIR}
267+ endif
264268
265269
266270# ##### Build
Original file line number Diff line number Diff line change 2727
2828#include " ../cli/filelister.h"
2929
30+ static std::string builddir (std::string filename);
31+ static std::string objfile (std::string cppfile);
32+ static void getDeps (const std::string &filename, std::vector<std::string> &depfiles);
33+
34+
3035std::string builddir (std::string filename)
3136{
3237 if (filename.compare (0 ,4 ," lib/" ) == 0 )
@@ -406,7 +411,11 @@ int main(int argc, char **argv)
406411 fout << " install: cppcheck\n " ;
407412 fout << " \t install -d ${BIN}\n " ;
408413 fout << " \t install cppcheck ${BIN}\n " ;
409- fout << " \t install htmlreport/cppcheck-htmlreport ${BIN}\n\n " ;
414+ fout << " \t install htmlreport/cppcheck-htmlreport ${BIN}\n " ;
415+ fout << " ifdef CFGDIR \n " ;
416+ fout << " \t install -d ${CFGDIR}\n " ;
417+ fout << " \t install -m 644 cfg/* ${CFGDIR}\n " ;
418+ fout << " endif\n\n " ;
410419
411420 fout << " \n ###### Build\n\n " ;
412421
You can’t perform that action at this time.
0 commit comments