From 894de9827b59191b31aa521e9983550f32e30cf0 Mon Sep 17 00:00:00 2001 From: markj Date: Thu, 28 Mar 2013 04:13:52 +0000 Subject: Make sure that ${SHLIB_NAME}.debug and ${SHLIB_NAME}.symbols are always deleted by a "make clean" when DEBUG_FLAGS is set. Reported by: gleb Approved by: emaste (co-mentor) --- share/mk/bsd.lib.mk | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'share/mk') diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 3664210..38c8de3 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -202,6 +202,7 @@ ${SHLIB_NAME_FULL}: ${SOBJS} .endif .if defined(DEBUG_FLAGS) +CLEANFILES+= ${SHLIB_NAME_FULL} ${SHLIB_NAME}.symbols ${SHLIB_NAME}: ${SHLIB_NAME_FULL} ${SHLIB_NAME}.symbols ${OBJCOPY} --strip-debug --add-gnu-debuglink=${SHLIB_NAME}.symbols \ ${SHLIB_NAME_FULL} ${.TARGET} @@ -209,7 +210,7 @@ ${SHLIB_NAME}: ${SHLIB_NAME_FULL} ${SHLIB_NAME}.symbols ${SHLIB_NAME}.symbols: ${SHLIB_NAME_FULL} ${OBJCOPY} --only-keep-debug ${SHLIB_NAME_FULL} ${.TARGET} .endif -.endif +.endif #defined(SHLIB_NAME) .if defined(INSTALL_PIC_ARCHIVE) && defined(LIB) && !empty(LIB) && ${MK_TOOLCHAIN} != "no" _LIBS+= lib${LIB}_pic.a @@ -398,10 +399,7 @@ clean: .endif rm -f ${SHLIB_LINK} .endif -.if defined(LIB) && !empty(LIB) - rm -f lib${LIB}.so.* lib${LIB}.so -.endif -.endif +.endif # defined(SHLIB_NAME) .if defined(WANT_LINT) && defined(LIB) && !empty(LIB) rm -f ${LINTOBJS} .endif -- cgit v1.1