Ignore:
Timestamp:
Jul 22, 2010 6:01:41 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
  • ThirdParty/Glpk/trunk/Makefile.am

    r1568 r1635  
    137137thirdpartyinclude_HEADERS = $(GLPKDIR)/include/glpk.h
    138138
    139 if COIN_HAS_PKGCONFIG
    140 addlibsdir = $(datadir)/coin/doc/ThirdParty/Glpk
    141 addlibs_DATA = glpk_addlibs.txt
    142 
    143 glpk_addlibs.txt : coinglpk.pc
    144         PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs coinglpk > glpk_addlibs.txt
    145 endif
    146 
    147139pkgconfiglibdir = $(libdir)/pkgconfig
    148140pkgconfiglib_DATA = coinglpk.pc
     141
     142if COIN_HAS_PKGCONFIG
     143addlibsdir = $(DESTDIR)$(datadir)/coin/doc/ThirdParty/Glpk
     144       
     145install-data-hook:
     146        @$(mkdir_p) "$(addlibsdir)"
     147        PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ PKG_CONFIG_DISABLE_UNINSTALLED= \
     148        $(PKG_CONFIG) --libs coinglpk > $(addlibsdir)/glpk_addlibs.txt
     149endif
    149150
    150151########################################################################
Note: See TracChangeset for help on using the changeset viewer.