Skip to content

Commit

Permalink
Fix error when SRCCONF is empty.
Browse files Browse the repository at this point in the history
Sponsored by:	EMC / Isilon Storage Division
  • Loading branch information
bdrewery committed Apr 22, 2016
1 parent 0bab509 commit f19c33e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion share/mk/src.sys.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
.if !defined(_WITHOUT_SRCCONF)
# Allow user to configure things that only effect src tree builds.
SRCCONF?= /etc/src.conf
.if (exists(${SRCCONF}) || ${SRCCONF} != "/etc/src.conf") && !target(_srcconf_included_)
.if !empty(SRCCONF) && \
(exists(${SRCCONF}) || ${SRCCONF} != "/etc/src.conf") && \
!target(_srcconf_included_)

# Validate that the user didn't try setting an env-only variable in
# their src.conf. This benefits from already including bsd.mkopt.mk.
Expand Down

0 comments on commit f19c33e

Please sign in to comment.