summaryrefslogtreecommitdiff
path: root/distrib/alpha
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-04-28 15:21:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-04-28 15:21:51 +0000
commit9f26f88fc9914553f72c6c16a69ab28d35da1f66 (patch)
tree6916054d9b733b75537d8d6af1c2aa2334fdec8f /distrib/alpha
parentb23dbd1048b63741bb0d8faf81e0932a68989654 (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/alpha')
-rw-r--r--distrib/alpha/bsd.rd/Makefile6
-rw-r--r--distrib/alpha/common/Makefile.inc6
-rw-r--r--distrib/alpha/inst-common/Makefile.inc19
3 files changed, 15 insertions, 16 deletions
diff --git a/distrib/alpha/bsd.rd/Makefile b/distrib/alpha/bsd.rd/Makefile
index 13d32e1a730..ba516961022 100644
--- a/distrib/alpha/bsd.rd/Makefile
+++ b/distrib/alpha/bsd.rd/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.33 2019/04/28 14:48:08 deraadt Exp $
+# $OpenBSD: Makefile,v 1.34 2019/04/28 15:21:49 deraadt Exp $
TOP= ${.CURDIR}/..
@@ -32,14 +32,14 @@ bsd:
su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && ${MAKE}'
cp -p ${.CURDIR}/../../../sys/arch/alpha/compile/RAMDISKBIG/obj/bsd bsd
-${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
.ifdef RELEASEDIR
diff --git a/distrib/alpha/common/Makefile.inc b/distrib/alpha/common/Makefile.inc
index 99c4ed06e7b..f71c02954e4 100644
--- a/distrib/alpha/common/Makefile.inc
+++ b/distrib/alpha/common/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.38 2019/04/28 14:48:09 deraadt Exp $
+# $OpenBSD: Makefile.inc,v 1.39 2019/04/28 15:21:49 deraadt Exp $
TOP= ${.CURDIR}/..
@@ -61,14 +61,14 @@ bsd:
su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && ${MAKE}'
cp -p ${.CURDIR}/../../../sys/arch/alpha/compile/${RAMDISK}/obj/bsd bsd
-${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
unconfig:
diff --git a/distrib/alpha/inst-common/Makefile.inc b/distrib/alpha/inst-common/Makefile.inc
index a4802d0aa98..12b96fbb51e 100644
--- a/distrib/alpha/inst-common/Makefile.inc
+++ b/distrib/alpha/inst-common/Makefile.inc
@@ -1,31 +1,30 @@
#
-# $OpenBSD: Makefile.inc,v 1.16 2017/09/18 20:09:34 jasper Exp $
+# $OpenBSD: Makefile.inc,v 1.17 2019/04/28 15:21:49 deraadt Exp $
#
# TOP is assumed to be defined by Makefile including this one.
-CBIN?= instbin
UTILS= ${TOP}/../miniroot
LISTS?= ${.CURDIR}/../common/list
-CRUNCHCONF?= ${CBIN}.conf
+CRUNCHCONF?= instbin.conf
MTREE= ${UTILS}/mtree.conf
STRIPOPTS?= -R .eh_frame -R .SUNW_ctf -R .shstrtab
${CRUNCHCONF}: ${LISTS}
- awk -f ${UTILS}/makeconf.awk CBIN=${CBIN} ${LISTS} > ${CBIN}.conf
+ awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf
-${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
+instbin.mk instbin.cache instbin.c: ${CRUNCHCONF}
crunchgen -E -D ${BSDSRCDIR} -L ${DESTDIR}/usr/lib ${CRUNCHCONF}
-${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
- ${MAKE} -f ${CBIN}.mk SRCLIBDIR=${.CURDIR}/../../../lib all
- strip ${STRIPOPTS} ${CBIN}
+instbin: instbin.mk instbin.cache instbin.c
+ ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all
+ strip ${STRIPOPTS} instbin
clean cleandir:
- /bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache \
+ /bin/rm -f *.core ${IMAGE} instbin instbin.mk instbin.cache \
*.o *.lo *.c \
- lib*.a lib*.olist ${CBIN}.map ${CLEANFILES}
+ lib*.a lib*.olist instbin.map ${CLEANFILES}
/bin/rm -rf ${IMAGE}.d
.include <bsd.obj.mk>