Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Jun 2003 12:44:44 +0900
From:      Jun Kuriyama <kuriyama@imgsrc.co.jp>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Current <freebsd-current@freebsd.org>
Subject:   Re: Remove absolute symlink in $MAKEOBJDIR
Message-ID:  <7mel2bddub.wl@black.imgsrc.co.jp>
In-Reply-To: <20030602194516.Q15091@gamplex.bde.org>
References:  <7mvfvpcb8s.wl@black.imgsrc.co.jp> <20030602194516.Q15091@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
At Mon, 2 Jun 2003 10:10:26 +0000 (UTC),
Bruce Evans wrote:
> As marcel pointed out, there are technical reasons for not using cp.
> Use cat.

OK, thanks!

> > (2) Use correct dependency in sys/boot/i386/kgzldr.
> 
> This is too hackish for me.  Try using the same method as for lib/csu.
> I think you nmainly care about "make install" building things.  This is
> from longstanding brokenness of installation of man pages which was
> cloned to brokenness of installation of FILES.

Hmm, like this?  I don't know which owner and mode should be used at
realinstall stage.


Index: Makefile
===================================================================
RCS file: /home/ncvs/src/sys/boot/i386/kgzldr/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- Makefile	30 Sep 2002 20:37:57 -0000	1.12
+++ Makefile	3 Jun 2003 03:41:02 -0000
@@ -1,6 +1,5 @@
 # $FreeBSD: src/sys/boot/i386/kgzldr/Makefile,v 1.12 2002/09/30 20:37:57 peter Exp $
 
-FILES=	kgzldr.o
 SRCS=	start.s boot.c inflate.c lib.c crt.s sio.s
 OBJS=	${SRCS:N*.h:R:S/$/.o/g}
 CFLAGS=	-ffreestanding
@@ -15,7 +14,13 @@
 BOOT_COMCONSOLE_PORT?=	0x3f8
 AFLAGS+=--defsym SIO_PRT=${BOOT_COMCONSOLE_PORT}
 
+all: ${OBJS} kgzldr.o
+
 kgzldr.o: ${OBJS}
 	${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}
+
+realinstall:
+	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${LIBMODE} \
+		kgzldr.o ${DESTDIR}${BINDIR}
 
 .include <bsd.prog.mk>


-- 
Jun Kuriyama <kuriyama@imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama@FreeBSD.org> // FreeBSD Project



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7mel2bddub.wl>