From d12bb5cf3c69d083b2829d0d66f31b0c3becdd64 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 20 Oct 2008 16:47:56 +0000 Subject: Really fix .depend --- mk/depend.mk | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'mk/depend.mk') diff --git a/mk/depend.mk b/mk/depend.mk index 2ae6e1e8..8e66c1cd 100644 --- a/mk/depend.mk +++ b/mk/depend.mk @@ -9,7 +9,9 @@ IGNOREFILES+= .depend depend: .depend extra_depend -# Nasty hack for gmake which does not automatically include .depend -# if it exists, unlike every other make implementation. -INC_DEPEND= $(shell if test -e .depend; then echo ".depend"; else echo ""; fi) -include ${INC_DEPEND} +# Nasty hack. depend-.mk is a blank file, depend-gmake.mk has a gmake specific +# command to optionally include .depend. +# Someone should patch gmake to optionally include .depend if it exists. +_INC_DEP= $(shell if ${MAKE} --version | grep -q "^GNU "; then \ + echo "gmake"; else echo ""; fi) +include ${MK}/depend-${_INC_DEP}.mk -- cgit v1.2.3