2002-04-11 11:56:13 +04:00
|
|
|
# $NetBSD: Makefile,v 1.10 2002/04/11 07:56:13 lukem Exp $
|
2002-04-03 09:21:16 +04:00
|
|
|
#
|
|
|
|
|
|
|
|
PROG= installboot
|
2002-04-11 11:56:13 +04:00
|
|
|
SRCS= installboot.c sum.c machines.c \
|
|
|
|
alpha.c pmax.c sparc64.c vax.c
|
2002-04-03 09:21:16 +04:00
|
|
|
MAN= installboot.8
|
|
|
|
|
|
|
|
WARNS?= 3
|
|
|
|
|
2002-04-03 13:09:01 +04:00
|
|
|
CPPFLAGS+= -I${.CURDIR}
|
|
|
|
.PATH: ${.CURDIR}/arch
|
|
|
|
|
2002-04-06 17:59:12 +04:00
|
|
|
.ifndef HOSTPROG
|
2002-04-05 03:01:38 +04:00
|
|
|
# list of MACHINEs to enable the compat symlink /usr/mdec/installboot
|
2002-04-11 11:56:13 +04:00
|
|
|
# XXX: eventually this should be done for all machines.
|
|
|
|
# XXX: or /usr/mdec/installboot is replaced with a shell script that
|
|
|
|
# XXX: tells the user to use /usr/sbin/installboot instead
|
2002-04-05 03:01:38 +04:00
|
|
|
#
|
|
|
|
COMPATLINKS?= pmax
|
|
|
|
afterinstall:
|
|
|
|
.for l in ${COMPATLINKS}
|
|
|
|
.if (${MACHINE} == ${l})
|
|
|
|
${INSTALL_SYMLINK} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
2002-04-06 19:27:55 +04:00
|
|
|
${BINDIR}/${PROG} ${DESTDIR}/usr/mdec/${PROG}
|
2002-04-05 03:01:38 +04:00
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
2002-04-03 09:21:16 +04:00
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.endif
|