rules-install-so.mak
Upload User: v168you
Upload Date: 2008-03-01
Package Size: 1294k
Code Size: 2k
Category:

STL

Development Platform:

MultiPlatform

  1. # -*- makefile -*- Time-stamp: <05/03/02 18:39:22 ptr>
  2. # $Id: rules-install-so.mak 2057 2005-12-29 20:43:09Z dums $
  3. INSTALL_TAGS ?= install-shared
  4. PHONY += install $(INSTALL_TAGS)
  5. install: $(INSTALL_TAGS)
  6. install-release-shared: release-shared $(INSTALL_LIB_DIR)
  7. @if [ -h $(INSTALL_LIB_DIR)/${SO_NAME} ] ; then 
  8.   rm $(INSTALL_LIB_DIR)/${SO_NAME}; 
  9. fi
  10. @if [ -h $(INSTALL_LIB_DIR)/${SO_NAMEx} ] ; then 
  11.   rm $(INSTALL_LIB_DIR)/${SO_NAMEx}; 
  12. fi
  13. @if [ -h $(INSTALL_LIB_DIR)/${SO_NAMExx} ] ; then 
  14.   rm $(INSTALL_LIB_DIR)/${SO_NAMExx}; 
  15. fi
  16. @if [ -f $(INSTALL_LIB_DIR)/${SO_NAMExxx} ] ; then 
  17.   rm $(INSTALL_LIB_DIR)/${SO_NAMExxx}; 
  18. fi
  19. $(INSTALL_SO) ${SO_NAME_OUTxxx} $(INSTALL_LIB_DIR)
  20. (cd $(INSTALL_LIB_DIR) && 
  21.  { ln -s ${SO_NAMExxx} ${SO_NAMExx}; 
  22.    ln -s ${SO_NAMExx} ${SO_NAMEx}; 
  23.    ln -s ${SO_NAMEx} ${SO_NAME}; } )
  24. install-dbg-shared: dbg-shared $(INSTALL_LIB_DIR_DBG)
  25. @if [ -h $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBG} ] ; then 
  26.   rm $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBG}; 
  27. fi
  28. @if [ -h $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGx} ] ; then 
  29.   rm $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGx}; 
  30. fi
  31. @if [ -h $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGxx} ] ; then 
  32.   rm $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGxx}; 
  33. fi
  34. @if [ -f $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGxxx} ] ; then 
  35.   rm $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGxxx}; 
  36. fi
  37. $(INSTALL_SO) ${SO_NAME_OUT_DBGxxx} $(INSTALL_LIB_DIR_DBG)
  38. (cd $(INSTALL_LIB_DIR_DBG) && 
  39.  { ln -s ${SO_NAME_DBGxxx} ${SO_NAME_DBGxx}; 
  40.    ln -s ${SO_NAME_DBGxx} ${SO_NAME_DBGx}; 
  41.    ln -s ${SO_NAME_DBGx} ${SO_NAME_DBG}; } )
  42. install-stldbg-shared: stldbg-shared $(INSTALL_LIB_DIR_STLDBG)
  43. @if [ -h $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBG} ] ; then 
  44.   rm $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBG}; 
  45. fi
  46. @if [ -h $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGx} ] ; then 
  47.   rm $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGx}; 
  48. fi
  49. @if [ -h $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGxx} ] ; then 
  50.   rm $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGxx}; 
  51. fi
  52. @if [ -f $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGxxx} ] ; then 
  53.   rm $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGxxx}; 
  54. fi
  55. $(INSTALL_SO) ${SO_NAME_OUT_STLDBGxxx} $(INSTALL_LIB_DIR_STLDBG)
  56. (cd $(INSTALL_LIB_DIR_STLDBG) && 
  57.  { ln -s ${SO_NAME_STLDBGxxx} ${SO_NAME_STLDBGxx}; 
  58.    ln -s ${SO_NAME_STLDBGxx} ${SO_NAME_STLDBGx}; 
  59.    ln -s ${SO_NAME_STLDBGx} ${SO_NAME_STLDBG}; } )