Explicitly verify if we have found the VERSION_GEN script

instead of passing the possibly null argument to awk(1) and
getting an obscure error from it.
This commit is contained in:
Yaroslav Tykhiy 2007-10-18 15:21:35 +00:00
parent 9a09d70af1
commit 479f84ca4d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172755

View File

@ -34,6 +34,9 @@ _vgen= ${path}/${VERSION_GEN}
.endif
.endif
.endfor
.if empty(_vgen)
.error ${VERSION_GEN} not found in the search path.
.endif
# Run the symbol maps through the C preprocessor before passing
# them to the symbol version generator.