From 30b3fca79041ab0a802544311697b24bef04f3ac Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sun, 15 Nov 2015 14:19:08 +0000 Subject: [PATCH] Allow to generate the locale when the source directory is not /usr/src --- tools/tools/locale/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/tools/locale/Makefile b/tools/tools/locale/Makefile index d54167ce8646..2b5aa55d189a 100644 --- a/tools/tools/locale/Makefile +++ b/tools/tools/locale/Makefile @@ -41,15 +41,15 @@ install: .for t in ${TYPES} . if ${KNOWN:M${t}} rm -rf ${.CURDIR}/${t}.draft - rm -rf ${DESTDIR}/usr/src/share/${t} - mv ${.CURDIR}/${t} ${DESTDIR}/usr/src/share/ + rm -rf ${.CURDIR}/../../../share/${t} + mv ${.CURDIR}/${t} ${.CURDIR}/../../../share/${t} . endif .endfor post-install: .for t in ${TYPES} . if ${KNOWN:M${t}} - (cd ${DESTDIR}/usr/src/share/${t} && \ + (cd ${.CURDIR}/../../../share/${t} && \ make && make install && make clean) . endif .endfor