NetBSD/share/lkm/Makefile
simonb ba77c9abaf Don't chown installed files or directories if UNPRIVILEGED is defined.
"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.
1999-08-21 06:30:11 +00:00

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>