Add proper dependencies for the version map, and make sure 'make clean'

removes it if it was generated.

Reviewed by:	ru
This commit is contained in:
Dag-Erling Smørgrav 2006-03-23 20:37:04 +00:00
parent 5c391fb60c
commit add47b9589

View File

@ -127,7 +127,7 @@ _vgen= ${path}/${VERSION_GEN}
.endif
.endfor
${VERSION_MAP}:
${VERSION_MAP}: ${VERSION_DEF} ${_vgen} ${SYMBOL_MAPS}
awk -v vfile=${VERSION_DEF} -f ${_vgen} ${SYMBOL_MAPS} \
> ${.TARGET}
.endif # !empty(VERSION_DEF) && !empty(SYMBOL_MAPS)
@ -355,6 +355,9 @@ clean:
.if defined(CLEANDIRS) && !empty(CLEANDIRS)
rm -rf ${CLEANDIRS}
.endif
.if !empty(VERSION_DEF) && !empty(SYMBOL_MAPS)
rm -f ${VERSION_MAP}
.endif
.endif
.include <bsd.obj.mk>