Makefile: Fix DESTDIR handling
This commit is contained in:
parent
e3bdc37b0c
commit
3eafb2b5c4
4
Makefile
4
Makefile
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue