Makefile: Fix DESTDIR handling

This commit is contained in:
Gianfranco Costamagna 2014-09-25 18:50:48 +02:00 committed by Daniel Marjamäki
parent e3bdc37b0c
commit 3eafb2b5c4
2 changed files with 4 additions and 4 deletions

View File

@ -272,8 +272,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

View File

@ -415,8 +415,8 @@ int main(int argc, char **argv)
fout << "\tinstall cppcheck ${BIN}\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 << "\tinstall -d ${DESTDIR}${CFGDIR}\n";
fout << "\tinstall -m 644 cfg/* ${DESTDIR}${CFGDIR}\n";
fout << "endif\n\n";
fout << "\n###### Build\n\n";