diff options
author | des <des@FreeBSD.org> | 2006-03-23 20:37:04 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2006-03-23 20:37:04 +0000 |
commit | 2abf6145b005fb71faeae56cbbf407ee3cb12207 (patch) | |
tree | 4b3b2a22738fbe020fdf088b58c7007428fb76a2 | |
parent | 9a2fc256111f90ff257a66f795dfcdc2fa1ed192 (diff) | |
download | FreeBSD-src-2abf6145b005fb71faeae56cbbf407ee3cb12207.zip FreeBSD-src-2abf6145b005fb71faeae56cbbf407ee3cb12207.tar.gz |
Add proper dependencies for the version map, and make sure 'make clean'
removes it if it was generated.
Reviewed by: ru
-rw-r--r-- | share/mk/bsd.lib.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 8dfd195..7b3671d 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -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> |