NetBSD/sbin/disklabel/Makefile

46 lines
974 B
Makefile
Raw Normal View History

1993-08-01 09:37:30 +04:00
# from: @(#)Makefile 5.6 (Berkeley) 4/1/91
# $Id: Makefile,v 1.9 1994/06/24 13:48:17 hpeyerl Exp $
1993-03-21 12:45:37 +03:00
PROG= disklabel
SRCS= disklabel.c dkcksum.c
MAN8= disklabel.0
BINGRP=operator
BINMODE=2550
CLEANFILES=disklabel.5.0
1993-04-25 10:58:16 +04:00
.if !defined(NOMAN)
1993-03-21 12:45:37 +03:00
all: disklabel.5.0
1993-04-25 10:58:16 +04:00
.endif
1993-03-21 12:45:37 +03:00
.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
1993-03-21 12:45:37 +03:00
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
1993-04-25 10:58:16 +04:00
.if !defined(NOMAN)
1993-07-18 23:17:22 +04:00
install ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} disklabel.5.0 \
1993-03-21 12:45:37 +03:00
${DESTDIR}${MANDIR}5/disklabel.0
1993-04-25 10:58:16 +04:00
.endif
1993-03-21 12:45:37 +03:00
.include <bsd.prog.mk>