From d6ba7eab71b2ce7e7983524789a41c800613088a Mon Sep 17 00:00:00 2001 From: espie Date: Tue, 21 Aug 2012 20:18:48 +0000 Subject: [PATCH] prevent non-existing clean to turn into an infinite loop. okay matthieu@, aja@ (problem noticed by aja@) --- share/mk/bsd.xorg.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/share/mk/bsd.xorg.mk b/share/mk/bsd.xorg.mk index 545ae9c81..16c2a3dca 100644 --- a/share/mk/bsd.xorg.mk +++ b/share/mk/bsd.xorg.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.xorg.mk,v 1.44 2012/08/08 21:54:33 matthieu Exp $ -*- makefile -*- +# $OpenBSD: bsd.xorg.mk,v 1.45 2012/08/21 20:18:48 espie Exp $ -*- makefile -*- # # Copyright © 2006,2012 Matthieu Herrb # @@ -150,6 +150,8 @@ all: config.status REORDER_DEPENDENCIES += ${X11BASE}/share/mk/automake.dep ECHO_REORDER ?= : +foo: + cd ${_SRCDIR}; ${AUTOTOOLS_ENV} exec autoreconf -v --install --force .if !target(config.status) config.status: .if defined(XENOCARA_RERUN_AUTOCONF) && ${XENOCARA_RERUN_AUTOCONF:L} == "yes" @@ -213,7 +215,7 @@ build: cd ${.CURDIR} && exec ${SUDO} ${MAKE} ${_wrapper} install .endif -.if !target(clean) +.if !target(clean) && ${MAKEFILE:T} != "Makefile" clean: -@if [ -f Makefile ]; then exec ${MAKE} clean; fi .endif