Skip to content

Commit 3eafb2b

Browse files
LocutusOfBorgdanmar
authored andcommitted
Makefile: Fix DESTDIR handling
1 parent e3bdc37 commit 3eafb2b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ install: cppcheck
272272
install cppcheck ${BIN}
273273
install htmlreport/cppcheck-htmlreport ${BIN}
274274
ifdef CFGDIR
275-
install -d ${CFGDIR}
276-
install -m 644 cfg/* ${CFGDIR}
275+
install -d ${DESTDIR}${CFGDIR}
276+
install -m 644 cfg/* ${DESTDIR}${CFGDIR}
277277
endif
278278

279279

tools/dmake.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ int main(int argc, char **argv)
415415
fout << "\tinstall cppcheck ${BIN}\n";
416416
fout << "\tinstall htmlreport/cppcheck-htmlreport ${BIN}\n";
417417
fout << "ifdef CFGDIR \n";
418-
fout << "\tinstall -d ${CFGDIR}\n";
419-
fout << "\tinstall -m 644 cfg/* ${CFGDIR}\n";
418+
fout << "\tinstall -d ${DESTDIR}${CFGDIR}\n";
419+
fout << "\tinstall -m 644 cfg/* ${DESTDIR}${CFGDIR}\n";
420420
fout << "endif\n\n";
421421

422422
fout << "\n###### Build\n\n";

0 commit comments

Comments
 (0)