Changes between Version 14 and Version 15 of pm-source-make


Ignore:
Timestamp:
Jun 6, 2011 10:26:28 AM (9 years ago)
Author:
stefan
Comment:

update on how to install XyzConfig?.h

Legend:

Unmodified
Added
Removed
Modified
  • pm-source-make

    v14 v15  
    242242
    243243{{{
    244 #######################################################################
    245 # Create the Config.h file that has all public defines and install it #
    246 #######################################################################
    247 
    248 ConfigHeader = ClpConfig.h
    249 
    250244install-exec-local:
    251         echo "#ifndef __CLP_CONFIG_H__" > bla
    252         echo "#define __CLP_CONFIG_H__" >> bla
    253         tail -n +3 config_clp.h >> bla
    254         echo "#endif" >> bla
    255         $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader)
    256         rm -f bla
     245        $(install_sh_DATA) config_clp.h $(DESTDIR)$(includecoindir)/ClpConfig.h
    257246
    258247uninstall-local:
    259         rm -f $(DESTDIR)$(includedir)/$(ConfigHeader)
    260 }}}
    261 
    262  Note that you should make sure that the ''public'' configuration header file is also installed. '''Do not install the ''private'' configuration header file {{{config.h}}}''', recall the information [wiki:pm-config-header here].
    263 
    264 
    265  * As discussed in the [wiki:pm-config-header Configuration Header files page], in COIN-OR we don't include the configuration header files {{{config*.h}}} directly.  Instead, this is done via the '''''Pkg''Config.h''' file, to make sure that the compilation can also be done smoothly in a non-autotools setup. To build against an installed version of a project, the '''''Pkg''Config.h''' only needs to contain the content of the ''public'' configuration header file. The above lines ensure this, see [wiki:pm-config-header here] for more details.
     248        rm -f $(DESTDIR)$(includedir)/ClpConfig.h
     249}}}
     250
     251 * As discussed in the [wiki:pm-config-header Configuration Header files page], in COIN-OR we don't include the configuration header files {{{config*.h}}} directly.  Instead, this is done via the '''''Pkg''Config.h''' file, to make sure that the compilation can also be done smoothly in a non-autotools setup. However, when building against an installed version of a project, only the ''public'' configuration header file is required. Thus, the above lines ensure that the public header is installed as '''''Pkg''Config.h''' file. '''Do not install the ''private'' configuration header file {{{config.h}}}''', recall the information [wiki:pm-config-header here].
    266252 The {{{install-exec-local}}} is run by the generated Makefile for a {{{make install}}}, and the commands for {{{uninstall-local}}} are executed for the {{{make uninstall}}}.