summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2012-08-21 20:18:49 +0000
committerMarc Espie <espie@cvs.openbsd.org>2012-08-21 20:18:49 +0000
commit3c6d0fc8bce6a227b1d9f56ff28f02c7eb67203d (patch)
tree5fae5f2d74472ae8eb5da72a1c38bb1d2e4e14ff /share
parentaad12aff3ac9d0c38a4e8a2cbdbe547c067bb97b (diff)
prevent non-existing clean to turn into an infinite loop.
okay matthieu@, aja@ (problem noticed by aja@)
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.xorg.mk6
1 files 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