From 1a7d7857eeb2d01369cca8d694a5f70d80ed5def Mon Sep 17 00:00:00 2001 From: msmith Date: Tue, 5 Sep 2000 22:33:07 +0000 Subject: 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(+) (limited to 'sys/boot') diff --git a/sys/boot/i386/liloldr/Makefile b/sys/boot/i386/liloldr/Makefile index d2975f1..3986eca 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 -- cgit v1.1