From 0153af6a167d8174f96746a0576a47f38a193b51 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Tue, 5 Sep 2000 22:33:07 +0000 Subject: [PATCH] Fix a bug which prevents parsing this Makefile without having a previously-built loader binary elsewhere. --- sys/boot/i386/liloldr/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/boot/i386/liloldr/Makefile b/sys/boot/i386/liloldr/Makefile index d2975f15341c..3986eca07906 100644 --- a/sys/boot/i386/liloldr/Makefile +++ b/sys/boot/i386/liloldr/Makefile @@ -16,8 +16,10 @@ LOADER= ${.OBJDIR}/../loader/loader LOADER= ${.CURDIR}/../loader/loader .endif +.if exists(${LOADER}) LOADER_SIZE != wc -c ${LOADER} | awk '{print int(($$1 + 15) / 16)}' AFLAGS= --defsym LOADER_SIZE=${LOADER_SIZE} +.endif ${BOOT}: ${BSECT} ${LDR} ${LOADER} cat ${BSECT} ${LDR} ${LOADER} > ${.TARGET}.tmp