ba77c9abaf
"make build" should now work as a non-root user (tested on Alpha). mtree spits out lots of warnings during "make distrib-dirs", but these are non-fatal.
20 lines
495 B
Makefile
20 lines
495 B
Makefile
#
|
|
# $NetBSD: Makefile,v 1.17 1999/08/21 06:30:12 simonb Exp $
|
|
#
|
|
|
|
.include <bsd.own.mk> # for UNPRIVILEGED
|
|
|
|
STUFF= README syscall vfs misc
|
|
MKOBJ= no
|
|
|
|
install:
|
|
find ${STUFF} -follow -name CVS -prune -o -type f -print | \
|
|
cpio -pdumL ${DESTDIR}${BINDIR}/lkm
|
|
.if !defined(UNPRIVILEGED)
|
|
chown -R ${BINOWN}:${BINGRP} ${DESTDIR}${BINDIR}/lkm
|
|
.endif
|
|
find ${DESTDIR}${BINDIR}/lkm -type f | xargs chmod a=rX
|
|
find ${DESTDIR}${BINDIR}/lkm -type d | xargs chmod u=rwX,go=rX
|
|
|
|
.include <bsd.prog.mk>
|