Changes between Version 3 and Version 4 of pm-config-header


Ignore:
Timestamp:
May 31, 2011 9:30:52 AM (9 years ago)
Author:
tkr
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pm-config-header

    v3 v4  
    148148#endif
    149149}}}
    150 Since both files need to be setup by the user, here the private header includes the public header to avoid redundancy. Further, a header {{{configall_system.h}}} is included that tries to provide commonly used defines. Note that file '''config_coinutils.h''' is installed as '''CoinUtilsConfig.h''' for use by external users linking to the !CoinUtils library after the fact.
     150Since both files need to be setup by the user, here the private header includes the public header to avoid redundancy. Further, a header {{{configall_system.h}}} is included that tries to provide commonly used defines. Note that file '''config_coinutils.h''' is installed as '''CoinUtilsConfig.h''' for use by external users linking to the !CoinUtils library after the fact. This occurs by addition of the following lines to {{{src/Makefile.am}}}:
     151
     152{{{
     153# You only need to adapt the following line
     154ConfigHeader = CoinUtilsConfig.h
     155
     156install-exec-local:
     157        echo "#ifndef __CONFIG_COINUTILS_H__" > bla
     158        echo "#define __CONFIG_COINUTILS_H__" >> bla
     159        tail -n +3 ../inc/config_coinutils.h >> bla
     160        echo "#endif" >> bla
     161        $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader)
     162        rm -f bla
     163
     164uninstall-local:
     165        rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader)
     166
     167}}}