From 3cd22041cecb6febbd0c7c0ff08c0c4065e96965 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Wed, 6 Aug 2003 08:09:40 +0000 Subject: [PATCH] - Unbreak Alpha snapshots (we were still attempting to build a no longer existing "fixit" crunched binary). - Simplify the CRUNCH_TARGETS variable's initialization. - Simplify the release.5 logic a bit by accounting for the fact that release/*_crunch.conf files were removed two years ago. --- release/Makefile | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/release/Makefile b/release/Makefile index 18f59ea54f8..e210582328b 100644 --- a/release/Makefile +++ b/release/Makefile @@ -255,17 +255,13 @@ DOFS_SH= ${.CURDIR}/scripts/doFS.sh ${DISKLABEL} ${TARGET} DOFS_SH= ${.CURDIR}/scripts/doFS.sh ${DISKLABEL} "" .endif -.if ${TARGET_ARCH} == "sparc64" -CRUNCH_TARGETS= boot -.elif ${TARGET_ARCH} == "ia64" -CRUNCH_TARGETS= boot -.elif ${TARGET} == "pc98" -CRUNCH_TARGETS= boot fixit fixit-small -.elif ${TARGET_ARCH} == "amd64" -CRUNCH_TARGETS= boot +CRUNCH_TARGETS= boot +.if ${TARGET_ARCH} == "i386" +CRUNCH_TARGETS+=fixit +.if ${TARGET} == "pc98" +CRUNCH_TARGETS+=fixit-small +.endif .endif - -CRUNCH_TARGETS?=boot fixit EXTRAS= ftp.1 .if !defined(NOCDROM) @@ -553,19 +549,17 @@ release.5: rm -rf ${RD}/crunch mkdir -p ${RD}/crunch .for j in ${CRUNCH_TARGETS} +.if exists(${.CURDIR}/${TARGET}/${j}_crunch.conf) rm -rf ${j}_crunch mkdir ${j}_crunch -.if exists(${.CURDIR}/${TARGET}/${j}_crunch.conf) cd ${j}_crunch; ${WMAKEENV} crunchgen -o ${.CURDIR}/${TARGET}/${j}_crunch.conf -.else - cd ${j}_crunch; ${WMAKEENV} crunchgen -o ${.CURDIR}/${j}_crunch.conf -.endif cd ${j}_crunch; ${WMAKE} -f ${j}_crunch.mk subclean cd ${.CURDIR}/..; ${BINMAKE} -f Makefile.inc1 _build-tools cd ${j}_crunch; ${WMAKE} -f ${j}_crunch.mk \ CFLAGS="-Os -pipe" -DNO_CPU_CFLAGS all ${WMAKEENV} strip -R .comment ${j}_crunch/${j}_crunch mv ${j}_crunch/${j}_crunch ${RD}/crunch/${j} +.endif .endfor touch ${.TARGET}