Module Name: src
Committed By: christos
Date: Wed Jan 13 23:01:15 UTC 2016
Modified Files:
src/tools: Makefile.gnuhost
Log Message:
look in external first.
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/tools/Makefile.gnuhost
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tools/Makefile.gnuhost
diff -u src/tools/Makefile.gnuhost:1.42 src/tools/Makefile.gnuhost:1.43
--- src/tools/Makefile.gnuhost:1.42 Tue Aug 13 16:41:25 2013
+++ src/tools/Makefile.gnuhost Wed Jan 13 18:01:15 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.gnuhost,v 1.42 2013/08/13 20:41:25 drochner Exp $
+# $NetBSD: Makefile.gnuhost,v 1.43 2016/01/13 23:01:15 christos Exp $
#
# Rules used when building a GNU host package. Expects MODULE to be set.
#
@@ -24,7 +24,11 @@ HOST_CFLAGS+=-O2 -no-cpp-precomp
.endif
MAKE_PROGRAM?= ${MAKE}
+.if exists(${.CURDIR}/../../external/gpl2/${MODULE}/dist)
+GNUHOSTDIST?= ${.CURDIR}/../../external/gpl2/${MODULE}/dist
+.else
GNUHOSTDIST?= ${.CURDIR}/../../gnu/dist/${MODULE}
+.endif
FIND_ARGS+= \! \( -type d \( \
-name 'CVS' -o \