Changeset 1486 for trunk/Cbc/Makefile.am


Ignore:
Timestamp:
Jul 22, 2010 6:04:38 AM (9 years ago)
Author:
stefan
Message:

create xxx_addlibs.txt after installation by using only .pc files of installed projects; rerun autotools

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/Makefile.am

    r1471 r1486  
    117117########################################################################
    118118
    119 if COIN_HAS_PKGCONFIG
    120 addlibsdir = $(datadir)/coin/doc/Cbc
    121 addlibs_DATA = cbc_addlibs.txt
    122 
    123 cbc_addlibs.txt : cbc.pc
    124         PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs cbc > cbc_addlibs.txt
    125 endif
    126 
    127119pkgconfiglibdir = $(libdir)/pkgconfig
    128120pkgconfiglib_DATA = cbc.pc osi-cbc.pc
     121
     122if COIN_HAS_PKGCONFIG
     123addlibsdir = $(DESTDIR)$(datadir)/coin/doc/Cbc
     124       
     125install-data-hook:
     126        @$(mkdir_p) "$(addlibsdir)"
     127        PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ PKG_CONFIG_DISABLE_UNINSTALLED= \
     128        $(PKG_CONFIG) --libs cbc > $(addlibsdir)/cbc_addlibs.txt
     129endif
    129130
    130131########################################################################
Note: See TracChangeset for help on using the changeset viewer.