From: Thomas Veerman Date: Tue, 26 Jun 2012 09:31:30 +0000 (+0000) Subject: releasetools: use build system macros X-Git-Tag: v3.2.1~467 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/CHANGES?a=commitdiff_plain;h=f26d79e0ff7ed56c76817d1be634b8de3f230a2f;p=minix.git releasetools: use build system macros --- diff --git a/releasetools/Makefile b/releasetools/Makefile index 2cade9561..166019365 100644 --- a/releasetools/Makefile +++ b/releasetools/Makefile @@ -3,6 +3,7 @@ .include "nbsd.config" .include +.include u=/usr MDEC= /usr/mdec @@ -76,7 +77,7 @@ bootable: hdboot: services rm -rf ${DESTDIR}/boot/minix/.temp/ - mkdir -p ${DESTDIR}/boot/minix/.temp + ${INSTALL_DIR} ${DESTDIR}/boot/minix/.temp # mod_0 is used to make alphabetical order equal to the boot order n=0; \ for i in ${PROGRAMS}; \ @@ -84,18 +85,18 @@ hdboot: services n=`expr $$n + 1`; \ [ "$$n" -ge 10 ] && prefix="mod" || prefix="mod0"; \ newname="${DESTDIR}/boot/minix/.temp/$${prefix}$${n}_`basename $$i`"; \ - cp $$i $$newname; \ - strip -s $$newname; \ + ${INSTALL} $$i $$newname; \ + ${STRIP} -s $$newname; \ gzip $$newname; \ done cp ../kernel/kernel ${DESTDIR}/boot/minix/.temp/ - strip -s ${DESTDIR}/boot/minix/.temp/kernel + ${STRIP} -s ${DESTDIR}/boot/minix/.temp/kernel if [ "${MKINSTALLBOOT}" != "no" ] ; then \ - sh mkboot $@; \ - sh ../commands/update_bootcfg/update_bootcfg.sh; \ + ${HOST_SH} mkboot $@; \ + ${HOST_SH} ../commands/update_bootcfg/update_bootcfg.sh;\ else \ ${INSTALL_DIR} ${DESTDIR}/multiboot; \ - cp ${DESTDIR}/boot/minix/.temp/* ${DESTDIR}/multiboot; \ + ${INSTALL} ${DESTDIR}/boot/minix/.temp/* ${DESTDIR}/multiboot; \ fi fdboot: