summaryrefslogtreecommitdiff
path: root/share/mk/bsd.xorg.mk
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2007-03-17 19:32:43 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2007-03-17 19:32:43 +0000
commitd1d7a07ac4c573930a0e17f91121fa0f74ef1bd8 (patch)
treed221cf2d6116119967c2838eb0226e50fa6e6d47 /share/mk/bsd.xorg.mk
parent0b87b101a088469abe32857f087d3a33b348c1dc (diff)
Touch files that would be modified by autotools to avoid un-needed
calls to automake and autoconf. Code stolen from ports tree. suggested by espie@. Tested by todd@.
Diffstat (limited to 'share/mk/bsd.xorg.mk')
-rw-r--r--share/mk/bsd.xorg.mk20
1 files changed, 19 insertions, 1 deletions
diff --git a/share/mk/bsd.xorg.mk b/share/mk/bsd.xorg.mk
index 729e6f427..650f8e8a7 100644
--- a/share/mk/bsd.xorg.mk
+++ b/share/mk/bsd.xorg.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.xorg.mk,v 1.12 2007/02/04 23:15:27 matthieu Exp $ -*- makefile -*-
+# $OpenBSD: bsd.xorg.mk,v 1.13 2007/03/17 19:32:41 matthieu Exp $ -*- makefile -*-
#
# Copyright © 2006 Matthieu Herrb
#
@@ -67,10 +67,28 @@ all: config.status
${MAKE_ENV} ${MAKE} ${_lt_libs}
.endif
+
+REORDER_DEPENDENCIES += ${X11BASE}/share/mk/automake.dep
+
.if !target(config.status)
config.status:
.if defined(XENOCARA_RERUN_AUTOCONF) && ${XENOCARA_RERUN_AUTOCONF:L} == "yes"
cd ${.CURDIR}; ${MAKE_ENV} autoreconf -v --install --force
+.else
+ @sed -e '/^#/d' ${REORDER_DEPENDENCIES} | \
+ tsort -r|while read f; do \
+ cd ${.CURDIR}; \
+ case $$f in \
+ /*) \
+ find . -name $${f#/} -print| while read i; \
+ do echo "Touching $$i"; touch $$i; done \
+ ;; \
+ *) \
+ if test -e $$f ; then \
+ echo "Touching $$f"; touch $$f; \
+ fi \
+ ;; \
+ esac; done
.endif
PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" CFLAGS="$(CFLAGS:C/ *$//)" \
${CONFIGURE_ENV} ${.CURDIR}/configure --prefix=${X11BASE} \