diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-04-28 15:21:51 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-04-28 15:21:51 +0000 |
commit | 9f26f88fc9914553f72c6c16a69ab28d35da1f66 (patch) | |
tree | 6916054d9b733b75537d8d6af1c2aa2334fdec8f /distrib/loongson | |
parent | b23dbd1048b63741bb0d8faf81e0932a68989654 (diff) |
CBIN variable is also pointless, it is always "instbin". Rather than
having two mysterious names, let's settle on one.
Diffstat (limited to 'distrib/loongson')
-rw-r--r-- | distrib/loongson/ramdisk/Makefile | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/distrib/loongson/ramdisk/Makefile b/distrib/loongson/ramdisk/Makefile index 175fb178233..98a763629e8 100644 --- a/distrib/loongson/ramdisk/Makefile +++ b/distrib/loongson/ramdisk/Makefile @@ -1,12 +1,11 @@ -# $OpenBSD: Makefile,v 1.14 2019/04/28 15:15:39 deraadt Exp $ +# $OpenBSD: Makefile,v 1.15 2019/04/28 15:21:49 deraadt Exp $ REV= ${OSrev} TOP= ${.CURDIR}/.. IMAGE= mr.fs -CBIN?= instbin -CRUNCHCONF?= ${CBIN}.conf +CRUNCHCONF?= instbin.conf CRUNCHCONFS?= ${.CURDIR}/../common/crunch.conf LISTS= ${.CURDIR}/list UTILS?= ${.CURDIR}/../../miniroot @@ -29,14 +28,14 @@ bsd.rd: ${IMAGE} bsd cp bsd bsd.rd rdsetroot bsd.rd ${IMAGE} -${IMAGE}: ${CBIN} +${IMAGE}: instbin rm -rf $@.d install -d -o root -g wheel $@.d mtree -def ${MTREE} -p $@.d -u TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} REV=${REV} \ TARGDIR=$@.d UTILS=${UTILS} RELEASEDIR=${RELEASEDIR} \ sh ${UTILS}/runlist.sh ${LISTS} - rm $@.d/${CBIN} + rm $@.d/instbin makefs ${MAKEFSARGS_RD} $@ $@.d .endif @@ -46,18 +45,18 @@ bsd: su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' cp -p ${TOP}/../../sys/arch/loongson/compile/RAMDISK/obj/bsd bsd -${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF} +instbin.mk instbin.cache instbin.c: ${CRUNCHCONF} crunchgen -EM -D ${.CURDIR}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC} -${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c - ${MAKE} -f ${CBIN}.mk SRCLIBDIR=${.CURDIR}/../../../lib all +instbin: instbin.mk instbin.cache instbin.c + ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all ${CRUNCHCONF}: ${LISTS} - awk -f ${UTILS}/makeconf.awk CBIN=${CBIN} ${LISTS} > ${CBIN}.conf + awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf clean cleandir: - /bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache \ - lib*.a lib*.olist ${CBIN}.map *.o *.lo *.c bsd bsd.rd cd${REV}.iso + /bin/rm -f *.core ${IMAGE} instbin instbin.mk instbin.cache \ + lib*.a lib*.olist instbin.map *.o *.lo *.c bsd bsd.rd cd${REV}.iso rm -rf cd-dir ${IMAGE}.d .ifdef RELEASEDIR |