=================================================================== RCS file: /cvsrepo/anoncvs/cvs/xenocara/Makefile,v retrieving revision 1.65 retrieving revision 1.66 diff -u -r1.65 -r1.66 --- xenocara/Makefile 2015/07/01 20:10:39 1.65 +++ xenocara/Makefile 2015/07/19 10:44:05 1.66 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.65 2015/07/01 20:10:39 deraadt Exp $ +# $OpenBSD: Makefile,v 1.66 2015/07/19 10:44:05 matthieu Exp $ .include .include @@ -29,12 +29,18 @@ NOOBJ= +.if defined(DESTDIR) +build: + @echo "Cannot run ${MAKE} build with DESTDIR set" + @exit 2 +.else build: exec ${SUDO} ${MAKE} bootstrap-root cd util/macros && exec ${MAKE} -f Makefile.bsd-wrapper exec ${SUDO} ${MAKE} beforebuild exec ${MAKE} realbuild exec ${SUDO} ${MAKE} afterbuild +.endif realbuild: _SUBDIRUSE # that's all folks