NetBSD/sbin/disklabel/Makefile

46 lines
974 B
Makefile

# from: @(#)Makefile 5.6 (Berkeley) 4/1/91
# $Id: Makefile,v 1.9 1994/06/24 13:48:17 hpeyerl Exp $
PROG= disklabel
SRCS= disklabel.c dkcksum.c
MAN8= disklabel.0
BINGRP=operator
BINMODE=2550
CLEANFILES=disklabel.5.0
.if !defined(NOMAN)
all: disklabel.5.0
.endif
.if ${MACHINE} == "amiga"
CFLAGS+= -D${MACHINE}
.endif
.if ${MACHINE} == "i386"
CFLAGS+= -DNUMBOOT=2
.endif
.if ${MACHINE} == "hp300"
CFLAGS+= -DNUMBOOT=1
.endif
.if ${MACHINE} == "i386"
CFLAGS+= -DRAWPARTITION=\'d\'
.endif
beforeinstall:
@if [ ! -d ${DESTDIR}${MANDIR}5 ]; then \
/bin/rm -f ${DESTDIR}${MANDIR}5 ; \
mkdir -p ${DESTDIR}${MANDIR}5 ; \
chown root.wheel ${DESTDIR}${MANDIR}5 ; \
chmod 755 ${DESTDIR}${MANDIR}5 ; \
else \
true ; \
fi
.if !defined(NOMAN)
install ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} disklabel.5.0 \
${DESTDIR}${MANDIR}5/disklabel.0
.endif
.include <bsd.prog.mk>