[complement-svn] SF.net SVN: complement: [1306] trunk/explore/Makefiles
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2006-10-09 13:58:01
|
Revision: 1306 http://svn.sourceforge.net/complement/?rev=1306&view=rev Author: complement Date: 2006-10-09 06:57:26 -0700 (Mon, 09 Oct 2006) Log Message: ----------- check links content and don't modify links and installed libraryif ones are correct Modified Paths: -------------- trunk/explore/Makefiles/ChangeLog trunk/explore/Makefiles/gmake/linux/rules-install-so.mak trunk/explore/Makefiles/gmake/linux/rules-so.mak Modified: trunk/explore/Makefiles/ChangeLog =================================================================== --- trunk/explore/Makefiles/ChangeLog 2006-10-06 15:46:37 UTC (rev 1305) +++ trunk/explore/Makefiles/ChangeLog 2006-10-09 13:57:26 UTC (rev 1306) @@ -1,3 +1,9 @@ +2006-10-09 Petr Ovtchenkov <pt...@is...> + + * gmake/linux/rules-so.mak, gmake/linux/rules-install-so.mak: + check links content and don't modify links and installed + library if ones are correct. + 2006-08-24 Petr Ovtchenkov <pt...@is...> * gmake/depend.mak: generate TAGS and tags by demand (with Modified: trunk/explore/Makefiles/gmake/linux/rules-install-so.mak =================================================================== --- trunk/explore/Makefiles/gmake/linux/rules-install-so.mak 2006-10-06 15:46:37 UTC (rev 1305) +++ trunk/explore/Makefiles/gmake/linux/rules-install-so.mak 2006-10-09 13:57:26 UTC (rev 1306) @@ -1,4 +1,4 @@ -# -*- makefile -*- Time-stamp: <06/06/22 12:23:55 ptr> +# -*- makefile -*- Time-stamp: <06/10/09 17:38:01 ptr> INSTALL_TAGS ?= install-release-shared install-dbg-shared install-stldbg-shared @@ -6,63 +6,94 @@ install: $(INSTALL_TAGS) -install-release-shared: release-shared $(INSTALL_LIB_DIR) - @if [ -h $(INSTALL_LIB_DIR)/${SO_NAME} ] ; then \ - rm $(INSTALL_LIB_DIR)/${SO_NAME}; \ +$(INSTALL_LIB_DIR)/${SO_NAMExxx}: ${SO_NAME_OUTxxx} + $(INSTALL_SO) ${SO_NAME_OUTxxx} $(INSTALL_LIB_DIR) + @if [ -h $(INSTALL_LIB_DIR)/${SO_NAMExx} ] ; then \ + if [ `readlink $(INSTALL_LIB_DIR)/${SO_NAMExx}` != "${SO_NAMExxx}" ]; then \ + rm $(INSTALL_LIB_DIR)/${SO_NAMExx}; \ + ln -s ${SO_NAMExxx} $(INSTALL_LIB_DIR)/${SO_NAMExx}; \ + fi \ + else \ + ln -s ${SO_NAMExxx} $(INSTALL_LIB_DIR)/${SO_NAMExx}; \ fi @if [ -h $(INSTALL_LIB_DIR)/${SO_NAMEx} ] ; then \ - rm $(INSTALL_LIB_DIR)/${SO_NAMEx}; \ + if [ `readlink $(INSTALL_LIB_DIR)/${SO_NAMEx}` != "${SO_NAMExx}" ]; then \ + rm $(INSTALL_LIB_DIR)/${SO_NAMEx}; \ + ln -s ${SO_NAMExx} $(INSTALL_LIB_DIR)/${SO_NAMEx}; \ + fi \ + else \ + ln -s ${SO_NAMExx} $(INSTALL_LIB_DIR)/${SO_NAMEx}; \ fi - @if [ -h $(INSTALL_LIB_DIR)/${SO_NAMExx} ] ; then \ - rm $(INSTALL_LIB_DIR)/${SO_NAMExx}; \ + @if [ -h $(INSTALL_LIB_DIR)/${SO_NAME} ] ; then \ + if [ `readlink $(INSTALL_LIB_DIR)/${SO_NAME}` != "${SO_NAMEx}" ]; then \ + rm $(INSTALL_LIB_DIR)/${SO_NAME}; \ + ln -s ${SO_NAMEx} $(INSTALL_LIB_DIR)/${SO_NAME}; \ + fi \ + else \ + ln -s ${SO_NAMEx} $(INSTALL_LIB_DIR)/${SO_NAME}; \ fi - @if [ -f $(INSTALL_LIB_DIR)/${SO_NAMExxx} ] ; then \ - rm $(INSTALL_LIB_DIR)/${SO_NAMExxx}; \ - fi - $(INSTALL_SO) ${SO_NAME_OUTxxx} $(INSTALL_LIB_DIR) - (cd $(INSTALL_LIB_DIR) && \ - { ln -s ${SO_NAMExxx} ${SO_NAMExx}; \ - ln -s ${SO_NAMExx} ${SO_NAMEx}; \ - ln -s ${SO_NAMEx} ${SO_NAME}; } ) + +install-release-shared: release-shared $(INSTALL_LIB_DIR) $(INSTALL_LIB_DIR)/${SO_NAMExxx} ${POST_INSTALL} -install-dbg-shared: dbg-shared $(INSTALL_LIB_DIR_DBG) - @if [ -h $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBG} ] ; then \ - rm $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBG}; \ +$(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGxxx}: ${SO_NAME_OUT_DBGxxx} + $(INSTALL_SO) ${SO_NAME_OUT_DBGxxx} $(INSTALL_LIB_DIR_DBG) + @if [ -h $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGxx} ] ; then \ + if [ `readlink $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGxx}` != "${SO_NAME_DBGxxx}" ]; then \ + rm $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGxx}; \ + ln -s ${SO_NAME_DBGxxx} $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGxx}; \ + fi \ + else \ + ln -s ${SO_NAME_DBGxxx} $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGxx}; \ fi @if [ -h $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGx} ] ; then \ - rm $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGx}; \ + if [ `readlink $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGx}` != "${SO_NAME_DBGxx}" ]; then \ + rm $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGx}; \ + ln -s ${SO_NAME_DBGxx} $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGx}; \ + fi \ + else \ + ln -s ${SO_NAME_DBGxx} $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGx}; \ fi - @if [ -h $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGxx} ] ; then \ - rm $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGxx}; \ + @if [ -h $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBG} ] ; then \ + if [ `readlink $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBG}` != "${SO_NAME_DBGx}" ]; then \ + rm $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBG}; \ + ln -s ${SO_NAME_DBGx} $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBG}; \ + fi \ + else \ + ln -s ${SO_NAME_DBGx} $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBG}; \ fi - @if [ -f $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGxxx} ] ; then \ - rm $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGxxx}; \ - fi - $(INSTALL_SO) ${SO_NAME_OUT_DBGxxx} $(INSTALL_LIB_DIR_DBG) - (cd $(INSTALL_LIB_DIR_DBG) && \ - { ln -s ${SO_NAME_DBGxxx} ${SO_NAME_DBGxx}; \ - ln -s ${SO_NAME_DBGxx} ${SO_NAME_DBGx}; \ - ln -s ${SO_NAME_DBGx} ${SO_NAME_DBG}; } ) + + +install-dbg-shared: dbg-shared $(INSTALL_LIB_DIR_DBG) $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGxxx} ${POST_INSTALL_DBG} -install-stldbg-shared: stldbg-shared $(INSTALL_LIB_DIR_STLDBG) - @if [ -h $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBG} ] ; then \ - rm $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBG}; \ +$(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGxxx}: ${SO_NAME_OUT_STLDBGxxx} + $(INSTALL_SO) ${SO_NAME_OUT_STLDBGxxx} $(INSTALL_LIB_DIR_STLDBG) + @if [ -h $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGxx} ] ; then \ + if [ `readlink $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGxx}` != "${SO_NAME_STLDBGxxx}" ]; then \ + rm $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGxx}; \ + ln -s ${SO_NAME_STLDBGxxx} $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_DSTLBGxx}; \ + fi \ + else \ + ln -s ${SO_NAME_STLDBGxxx} $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_DSTLBGxx}; \ fi @if [ -h $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGx} ] ; then \ - rm $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGx}; \ + if [ `readlink $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGx}` != "${SO_NAME_DBGxx}" ]; then \ + rm $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGx}; \ + ln -s ${SO_NAME_STLDBGxx} $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGx}; \ + fi \ + else \ + ln -s ${SO_NAME_STLDBGxx} $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGx}; \ fi - @if [ -h $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGxx} ] ; then \ - rm $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGxx}; \ + @if [ -h $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBG} ] ; then \ + if [ `readlink $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBG}` != "${SO_NAME_STLDBGx}" ]; then \ + rm $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBG}; \ + ln -s ${SO_NAME_STLDBGx} $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBG}; \ + fi \ + else \ + ln -s ${SO_NAME_STLDBGx} $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBG}; \ fi - @if [ -f $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGxxx} ] ; then \ - rm $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGxxx}; \ - fi - $(INSTALL_SO) ${SO_NAME_OUT_STLDBGxxx} $(INSTALL_LIB_DIR_STLDBG) - (cd $(INSTALL_LIB_DIR_STLDBG) && \ - { ln -s ${SO_NAME_STLDBGxxx} ${SO_NAME_STLDBGxx}; \ - ln -s ${SO_NAME_STLDBGxx} ${SO_NAME_STLDBGx}; \ - ln -s ${SO_NAME_STLDBGx} ${SO_NAME_STLDBG}; } ) + +install-stldbg-shared: stldbg-shared $(INSTALL_LIB_DIR_STLDBG) $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGxxx} ${POST_INSTALL_STLDBG} Modified: trunk/explore/Makefiles/gmake/linux/rules-so.mak =================================================================== --- trunk/explore/Makefiles/gmake/linux/rules-so.mak 2006-10-06 15:46:37 UTC (rev 1305) +++ trunk/explore/Makefiles/gmake/linux/rules-so.mak 2006-10-09 13:57:26 UTC (rev 1306) @@ -1,5 +1,4 @@ -# -*- makefile -*- Time-stamp: <05/04/15 18:18:34 ptr> -# $Id$ +# -*- makefile -*- Time-stamp: <06/10/09 17:36:05 ptr> # Shared libraries tags @@ -15,46 +14,166 @@ ${SO_NAME_OUTxxx}: $(OBJ) $(LIBSDEP) $(LINK.cc) $(LINK_OUTPUT_OPTION) ${START_OBJ} $(OBJ) $(LDLIBS) ${STDLIBS} ${END_OBJ} - (cd $(OUTPUT_DIR); \ - rm -f ${SO_NAMExx}; ln -s $(SO_NAMExxx) ${SO_NAMExx}; \ - rm -f ${SO_NAMEx}; ln -s ${SO_NAMExx} ${SO_NAMEx}; \ - rm -f ${SO_NAME}; ln -s ${SO_NAMEx} ${SO_NAME}) + @if [ -h $(OUTPUT_DIR)/${SO_NAMExx} ] ; then \ + if [ `readlink $(OUTPUT_DIR)/${SO_NAMExx}` != "${SO_NAMExxx}" ]; then \ + rm $(OUTPUT_DIR)/${SO_NAMExx}; \ + ln -s ${SO_NAMExxx} $(OUTPUT_DIR)/${SO_NAMExx}; \ + fi \ + else \ + ln -s ${SO_NAMExxx} $(OUTPUT_DIR)/${SO_NAMExx}; \ + fi + @if [ -h $(OUTPUT_DIR)/${SO_NAMEx} ] ; then \ + if [ `readlink $(OUTPUT_DIR)/${SO_NAMEx}` != "${SO_NAMExx}" ]; then \ + rm $(OUTPUT_DIR)/${SO_NAMEx}; \ + ln -s ${SO_NAMExx} $(OUTPUT_DIR)/${SO_NAMEx}; \ + fi \ + else \ + ln -s ${SO_NAMExx} $(OUTPUT_DIR)/${SO_NAMEx}; \ + fi + @if [ -h $(OUTPUT_DIR)/${SO_NAME} ] ; then \ + if [ `readlink $(OUTPUT_DIR)/${SO_NAME}` != "${SO_NAMEx}" ]; then \ + rm $(OUTPUT_DIR)/${SO_NAME}; \ + ln -s ${SO_NAMEx} $(OUTPUT_DIR)/${SO_NAME}; \ + fi \ + else \ + ln -s ${SO_NAMEx} $(OUTPUT_DIR)/${SO_NAME}; \ + fi ${SO_NAME_OUT_DBGxxx}: $(OBJ_DBG) $(LIBSDEP) $(LINK.cc) $(LINK_OUTPUT_OPTION) ${START_OBJ} $(OBJ_DBG) $(LDLIBS) ${STDLIBS} ${END_OBJ} - (cd $(OUTPUT_DIR_DBG); \ - rm -f ${SO_NAME_DBGxx}; ln -s $(SO_NAME_DBGxxx) ${SO_NAME_DBGxx}; \ - rm -f ${SO_NAME_DBGx}; ln -s ${SO_NAME_DBGxx} ${SO_NAME_DBGx}; \ - rm -f ${SO_NAME_DBG}; ln -s ${SO_NAME_DBGx} ${SO_NAME_DBG}) + @if [ -h $(OUTPUT_DIR_DBG)/${SO_NAME_DBGxx} ] ; then \ + if [ `readlink $(OUTPUT_DIR_DBG)/${SO_NAME_DBGxx}` != "${SO_NAME_DBGxxx}" ]; then \ + rm $(OUTPUT_DIR_DBG)/${SO_NAME_DBGxx}; \ + ln -s ${SO_NAME_DBGxxx} $(OUTPUT_DIR_DBG)/${SO_NAME_DBGxx}; \ + fi \ + else \ + ln -s ${SO_NAME_DBGxxx} $(OUTPUT_DIR_DBG)/${SO_NAME_DBGxx}; \ + fi + @if [ -h $(OUTPUT_DIR_DBG)/${SO_NAME_DBGx} ] ; then \ + if [ `readlink $(OUTPUT_DIR_DBG)/${SO_NAME_DBGx}` != "${SO_NAME_DBGxx}" ]; then \ + rm $(OUTPUT_DIR_DBG)/${SO_NAME_DBGx}; \ + ln -s ${SO_NAME_DBGxx} $(OUTPUT_DIR_DBG)/${SO_NAME_DBGx}; \ + fi \ + else \ + ln -s ${SO_NAME_DBGxx} $(OUTPUT_DIR_DBG)/${SO_NAME_DBGx}; \ + fi + @if [ -h $(OUTPUT_DIR_DBG)/${SO_NAME_DBG} ] ; then \ + if [ `readlink $(OUTPUT_DIR_DBG)/${SO_NAME_DBG}` != "${SO_NAME_DBGx}" ]; then \ + rm $(OUTPUT_DIR_DBG)/${SO_NAME_DBG}; \ + ln -s ${SO_NAME_DBGx} $(OUTPUT_DIR_DBG)/${SO_NAME_DBG}; \ + fi \ + else \ + ln -s ${SO_NAME_DBGx} $(OUTPUT_DIR_DBG)/${SO_NAME_DBG}; \ + fi ${SO_NAME_OUT_STLDBGxxx}: $(OBJ_STLDBG) $(LIBSDEP) $(LINK.cc) $(LINK_OUTPUT_OPTION) ${START_OBJ} $(OBJ_STLDBG) $(LDLIBS) ${STDLIBS} ${END_OBJ} - (cd $(OUTPUT_DIR_STLDBG); \ - rm -f ${SO_NAME_STLDBGxx}; ln -s $(SO_NAME_STLDBGxxx) ${SO_NAME_STLDBGxx}; \ - rm -f ${SO_NAME_STLDBGx}; ln -s ${SO_NAME_STLDBGxx} ${SO_NAME_STLDBGx}; \ - rm -f ${SO_NAME_STLDBG}; ln -s ${SO_NAME_STLDBGx} ${SO_NAME_STLDBG}) + @if [ -h $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGxx} ] ; then \ + if [ `readlink $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGxx}` != "${SO_NAME_STLDBGxxx}" ]; then \ + rm $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGxx}; \ + ln -s ${SO_NAME_STLDBGxxx} $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGxx}; \ + fi \ + else \ + ln -s ${SO_NAME_STLDBGxxx} $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGxx}; \ + fi + @if [ -h $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGx} ] ; then \ + if [ `readlink $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGx}` != "${SO_NAME_STLDBGxx}" ]; then \ + rm $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGx}; \ + ln -s ${SO_NAME_STLDBGxx} $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGx}; \ + fi \ + else \ + ln -s ${SO_NAME_STLDBGxx} $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGx}; \ + fi + @if [ -h $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBG} ] ; then \ + if [ `readlink $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBG}` != "${SO_NAME_STLDBGx}" ]; then \ + rm $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBG}; \ + ln -s ${SO_NAME_STLDBGx} $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBG}; \ + fi \ + else \ + ln -s ${SO_NAME_STLDBGx} $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBG}; \ + fi else ${SO_NAME_OUTxxx}: $(OBJ) $(LIBSDEP) $(LINK.c) $(LINK_OUTPUT_OPTION) $(OBJ) $(LDLIBS) - (cd $(OUTPUT_DIR); \ - rm -f ${SO_NAMExx}; ln -s $(SO_NAMExxx) ${SO_NAMExx}; \ - rm -f ${SO_NAMEx}; ln -s ${SO_NAMExx} ${SO_NAMEx}; \ - rm -f ${SO_NAME}; ln -s ${SO_NAMEx} ${SO_NAME}) + @if [ -h $(OUTPUT_DIR)/${SO_NAMExx} ] ; then \ + if [ `readlink $(OUTPUT_DIR)/${SO_NAMExx}` != "${SO_NAMExxx}" ]; then \ + rm $(OUTPUT_DIR)/${SO_NAMExx}; \ + ln -s ${SO_NAMExxx} $(OUTPUT_DIR)/${SO_NAMExx}; \ + fi \ + else \ + ln -s ${SO_NAMExxx} $(OUTPUT_DIR)/${SO_NAMExx}; \ + fi + @if [ -h $(OUTPUT_DIR)/${SO_NAMEx} ] ; then \ + if [ `readlink $(OUTPUT_DIR)/${SO_NAMEx}` != "${SO_NAMExx}" ]; then \ + rm $(OUTPUT_DIR)/${SO_NAMEx}; \ + ln -s ${SO_NAMExx} $(OUTPUT_DIR)/${SO_NAMEx}; \ + fi \ + else \ + ln -s ${SO_NAMExx} $(OUTPUT_DIR)/${SO_NAMEx}; \ + fi + @if [ -h $(OUTPUT_DIR)/${SO_NAME} ] ; then \ + if [ `readlink $(OUTPUT_DIR)/${SO_NAME}` != "${SO_NAMEx}" ]; then \ + rm $(OUTPUT_DIR)/${SO_NAME}; \ + ln -s ${SO_NAMEx} $(OUTPUT_DIR)/${SO_NAME}; \ + fi \ + else \ + ln -s ${SO_NAMEx} $(OUTPUT_DIR)/${SO_NAME}; \ + fi ${SO_NAME_OUT_DBGxxx}: $(OBJ_DBG) $(LIBSDEP) $(LINK.c) $(LINK_OUTPUT_OPTION) $(OBJ_DBG) $(LDLIBS) - (cd $(OUTPUT_DIR_DBG); \ - rm -f ${SO_NAME_DBGxx}; ln -s $(SO_NAME_DBGxxx) ${SO_NAME_DBGxx}; \ - rm -f ${SO_NAME_DBGx}; ln -s ${SO_NAME_DBGxx} ${SO_NAME_DBGx}; \ - rm -f ${SO_NAME_DBG}; ln -s ${SO_NAME_DBGx} ${SO_NAME_DBG}) + @if [ -h $(OUTPUT_DIR_DBG)/${SO_NAME_DBGxx} ] ; then \ + if [ `readlink $(OUTPUT_DIR_DBG)/${SO_NAME_DBGxx}` != "${SO_NAME_DBGxxx}" ]; then \ + rm $(OUTPUT_DIR_DBG)/${SO_NAME_DBGxx}; \ + ln -s ${SO_NAME_DBGxxx} $(OUTPUT_DIR_DBG)/${SO_NAME_DBGxx}; \ + fi \ + else \ + ln -s ${SO_NAME_DBGxxx} $(OUTPUT_DIR_DBG)/${SO_NAME_DBGxx}; \ + fi + @if [ -h $(OUTPUT_DIR_DBG)/${SO_NAME_DBGx} ] ; then \ + if [ `readlink $(OUTPUT_DIR_DBG)/${SO_NAME_DBGx}` != "${SO_NAME_DBGxx}" ]; then \ + rm $(OUTPUT_DIR_DBG)/${SO_NAME_DBGx}; \ + ln -s ${SO_NAME_DBGxx} $(OUTPUT_DIR_DBG)/${SO_NAME_DBGx}; \ + fi \ + else \ + ln -s ${SO_NAME_DBGxx} $(OUTPUT_DIR_DBG)/${SO_NAME_DBGx}; \ + fi + @if [ -h $(OUTPUT_DIR_DBG)/${SO_NAME_DBG} ] ; then \ + if [ `readlink $(OUTPUT_DIR_DBG)/${SO_NAME_DBG}` != "${SO_NAME_DBGx}" ]; then \ + rm $(OUTPUT_DIR_DBG)/${SO_NAME_DBG}; \ + ln -s ${SO_NAME_DBGx} $(OUTPUT_DIR_DBG)/${SO_NAME_DBG}; \ + fi \ + else \ + ln -s ${SO_NAME_DBGx} $(OUTPUT_DIR_DBG)/${SO_NAME_DBG}; \ + fi ${SO_NAME_OUT_STLDBGxxx}: $(OBJ_STLDBG) $(LIBSDEP) $(LINK.c) $(LINK_OUTPUT_OPTION) $(OBJ_STLDBG) $(LDLIBS) - (cd $(OUTPUT_DIR_STLDBG); \ - rm -f ${SO_NAME_STLDBGxx}; ln -s $(SO_NAME_STLDBGxxx) ${SO_NAME_STLDBGxx}; \ - rm -f ${SO_NAME_STLDBGx}; ln -s ${SO_NAME_STLDBGxx} ${SO_NAME_STLDBGx}; \ - rm -f ${SO_NAME_STLDBG}; ln -s ${SO_NAME_STLDBGx} ${SO_NAME_STLDBG}) + @if [ -h $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGxx} ] ; then \ + if [ `readlink $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGxx}` != "${SO_NAME_STLDBGxxx}" ]; then \ + rm $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGxx}; \ + ln -s ${SO_NAME_STLDBGxxx} $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGxx}; \ + fi \ + else \ + ln -s ${SO_NAME_STLDBGxxx} $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGxx}; \ + fi + @if [ -h $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGx} ] ; then \ + if [ `readlink $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGx}` != "${SO_NAME_STLDBGxx}" ]; then \ + rm $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGx}; \ + ln -s ${SO_NAME_STLDBGxx} $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGx}; \ + fi \ + else \ + ln -s ${SO_NAME_STLDBGxx} $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGx}; \ + fi + @if [ -h $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBG} ] ; then \ + if [ `readlink $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBG}` != "${SO_NAME_STLDBGx}" ]; then \ + rm $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBG}; \ + ln -s ${SO_NAME_STLDBGx} $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBG}; \ + fi \ + else \ + ln -s ${SO_NAME_STLDBGx} $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBG}; \ + fi endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |