Skip to content

Commit

Permalink
Implement a work around for what seems to be a bug in make(1).
Browse files Browse the repository at this point in the history
'CHECK_BUILTIN.${BUILTIN_PKG}?= no' would set the variable to no even if it
had a value before.
  • Loading branch information
cube committed Sep 28, 2008
1 parent 9072abe commit 9bc7e90
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mk/x11.builtin.mk
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# $NetBSD: x11.builtin.mk,v 1.2.20.1 2008/09/26 19:58:13 cube Exp $
# $NetBSD: x11.builtin.mk,v 1.2.20.2 2008/09/28 03:56:26 cube Exp $
#
# x11.builtin.mk will include the builtin.mk file from the appropriate
# X11 distribution.
#
# BUILTIN_PKG and USE_BUILTIN.<BUILTIN_PKG> must be defined by the caller

CHECK_BUILTIN.${BUILTIN_PKG}?= no
# XXX make bug
# 'CHECK_BUILTIN.${BUILTIN_PKG}?= no' will overwrite the value
.if !defined(CHECK_BUILTIN.${BUILTIN_PKG})
CHECK_BUILTIN.${BUILTIN_PKG}= no
.endif

.if !empty(CHECK_BUILTIN.${BUILTIN_PKG}:M[Nn][Oo])
. if !empty(USE_BUILTIN.${BUILTIN_PKG}:M[Yy][Ee][Ss])

Expand Down

0 comments on commit 9bc7e90

Please sign in to comment.