#5798 cfg files are not installed to CFGDIR. Extend patch to update dmake.cpp. Also fix some g++ compiler warnings

This commit is contained in:
Alexander Mai 2014-05-17 11:05:42 +02:00
parent ed78835020
commit 16aa891da2
2 changed files with 14 additions and 1 deletions

View File

@ -261,6 +261,10 @@ install: cppcheck
install -d ${BIN} install -d ${BIN}
install cppcheck ${BIN} install cppcheck ${BIN}
install htmlreport/cppcheck-htmlreport ${BIN} install htmlreport/cppcheck-htmlreport ${BIN}
ifdef CFGDIR
install -d ${CFGDIR}
install -m 644 cfg/* ${CFGDIR}
endif
###### Build ###### Build

View File

@ -27,6 +27,11 @@
#include "../cli/filelister.h" #include "../cli/filelister.h"
static std::string builddir(std::string filename);
static std::string objfile(std::string cppfile);
static void getDeps(const std::string &filename, std::vector<std::string> &depfiles);
std::string builddir(std::string filename) std::string builddir(std::string filename)
{ {
if (filename.compare(0,4,"lib/") == 0) if (filename.compare(0,4,"lib/") == 0)
@ -406,7 +411,11 @@ int main(int argc, char **argv)
fout << "install: cppcheck\n"; fout << "install: cppcheck\n";
fout << "\tinstall -d ${BIN}\n"; fout << "\tinstall -d ${BIN}\n";
fout << "\tinstall cppcheck ${BIN}\n"; fout << "\tinstall cppcheck ${BIN}\n";
fout << "\tinstall htmlreport/cppcheck-htmlreport ${BIN}\n\n"; fout << "\tinstall htmlreport/cppcheck-htmlreport ${BIN}\n";
fout << "ifdef CFGDIR \n";
fout << "\tinstall -d ${CFGDIR}\n";
fout << "\tinstall -m 644 cfg/* ${CFGDIR}\n";
fout << "endif\n\n";
fout << "\n###### Build\n\n"; fout << "\n###### Build\n\n";