diff --git a/sys/Makefile b/sys/Makefile index 51573a16516e..646a42464975 100644 --- a/sys/Makefile +++ b/sys/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.22 1997/06/26 19:27:40 drochner Exp $ +# $NetBSD: Makefile,v 1.23 1997/11/15 01:09:15 thorpej Exp $ # The ``rm -rf''s used below are safe because rm doesn't follow symbolic # links. @@ -20,6 +20,11 @@ LDIRS= dev isofs net netatalk netinet netccitt netiso netns netnatm nfs miscfs \ .include SYS_INCLUDE?= copies +# If DESTDIR is set, we're probably building a release, so force "copies". +.if defined(DESTDIR) && (${DESTDIR} != "/" && !empty(DESTDIR)) +SYS_INCLUDE= copies +.endif + .PHONY: includes includes: ${SYS_INCLUDE} @echo installing ${LFILES}