NetBSD/usr.sbin/installboot/Makefile

42 lines
906 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.8 2002/04/06 13:59:12 bjh21 Exp $
#
PROG= installboot
SRCS= installboot.c sum.c machines.c
MAN= installboot.8
WARNS?= 3
CPPFLAGS+= -I${.CURDIR}
.PATH: ${.CURDIR}/arch
# list of MACHINEs to enable MD back-ends for
#
IB_MACHINES?= alpha pmax sparc64 vax
SRCS+= ${IB_MACHINES:S/$/.c/}
.ifndef HOSTPROG
# list of MACHINEs to enable the compat symlink /usr/mdec/installboot
# XXX: eventually this should be done for all machines in ${IB_MACHINES}
#
COMPATLINKS?= pmax
afterinstall:
.for l in ${COMPATLINKS}
.if (${MACHINE} == ${l})
${INSTALL_SYMLINK} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${BINDIR}/${PROG} /usr/mdec/${PROG}
.endif
.endfor
regenmachines: mkmachines.awk Makefile
-mv -f ${.CURDIR}/machines.c ${.CURDIR}/machines.c.bak
awk -f ${.CURDIR}/mkmachines.awk ${IB_MACHINES} > ${.TARGET}
mv ${.TARGET} ${.CURDIR}/machines.c
.include <bsd.prog.mk>
.endif