Changes between Version 4 and Version 5 of doc/app/palmbuild


Ignore:
Timestamp:
Nov 20, 2018 1:48:44 PM (6 years ago)
Author:
kanani
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/app/palmbuild

    v4 v5  
    11= The PALM build script =
    22
    3 The script to compile PALM and its [utility (pre-/postprocessing) programs] is called {{{palmbuild}}}. It resides under {{{trunk/SCRIPTS}}} and is invoked by the [wiki:doc/install/automatic automatic installer] as part of the installation process. It can also be executed manually, e.g. in case of a [#svnupdate PALM code update] from the svn repository, or code modifications by the user. Each modifications of the source code requires new compilation.\\\\
     3The script to compile PALM and its [utility (pre-/postprocessing) programs] is called {{{palmbuild}}}. It resides under {{{trunk/SCRIPTS}}} and is invoked by the [wiki:doc/install/automatic automatic installer] as part of the installation process. It can also be executed manually, e.g. in case of a [#svnupdate PALM code update] from the svn repository, or code modifications by the user. Each modification of the source code requires new compilation.\\\\
    44
    55{{{palmbuild}}}\\\\
     
    1515   palmbuild -c default
    1616}}}
    17 Since you can have different configuration files (for different compilers, compiler options, or hosts), you need to specify the configuration file to be used by the option {{{-c}}}. The suffix {{{default}}} in this example is the <configuration identifier>, which can be an arbitrary ASCII-character string.\\
     17Since you can have different configuration files (for different compilers, compiler options, or hosts), you need to specify the configuration file to-be-used by the option {{{-c}}}. The suffix {{{default}}} in this example is the <configuration identifier>, which can be an arbitrary ASCII-character string.\\
    1818
    1919After entering the command, informative messages will appear in the terminal:
     
    4141#------------------------------------------------------------------------#
    4242
    43  >>> continue (y(es)/c(ontinue)/a(bort)) ? 
    44 }}}
    45 If {{{y}}} is entered, compilation will be started and compiler messages will appear. After successful completion, you will find the binaries in the directory given in the configuration file by {{{base_directory}}} under the folder name {{{MAKE_DEPOSITORY_abcde}}}.
     43 >>> continue (y(es)/a(bort)) ? 
     44}}}
    4645
    47 In case of a configuration file for PALM runs on a remote host, sources are copied via {{{scp}}} to the remote host and the compiler is called via {{{ssh}}} on the remote host too. Folder {{{MAKE_DEPOSITORY_abcde}}} is created under {{{base_directory}}} on the remote host.
     46After confirmation (y(es)), compilation starts and compiler messages will appear. After successful completion, the binaries reside in the directory {{{MAKE_DEPOSITORY_default}}} under the path given by the variable [%base_directory] in the configuration file. When invoking {{{palmbuild}}} locally for compilation of PALM on a [link-to remote computer], sources are copied via {{{scp}}} to the remote host, and the compiler is called via {{{ssh}}} on the remote host as well. Here, the {{{MAKE_DEPOSITORY_default}}} also lands [%base_directory].
    4847
    49 [=#svnupdate In case you have updated the PALM code, you need to call {{{palmbuild}}} again:]
     48[=#svnupdate In] case you have updated the PALM code, you need to call {{{palmbuild}}} again:
    5049{{{
    5150   cd ~/palm/current_version
    5251   svn update trunk
    53    palmbuild -c abcde
     52   palmbuild -c default
    5453}}}
    5554
     
    5756{{{
    5857   touch trunk/SOURCE/*.f90
    59    palmbuild -c abcde
     58   palmbuild -c default
    6059}}}
    6160because otherwise the make mechanism would see no changes in the source code and would not compile at all (message {{{make: Nothing to be done}}}). Alternatively, you may delete the MAKE_DEPOSITORY folder:
    6261{{{
    63    rm -rf MAKE_DEPOSITORY_abcde
    64    palmbuild -c abcde
     62   rm -rf MAKE_DEPOSITORY_default
     63   palmbuild -c default
    6564}}}
    66 
    67 If you have more than one configuration file, you need to call {{{palmbuild}}} separately for each configuration.
     65**However**, best practice would be to create [link-to individual .palm.config files] for the different configurations, because this prevents from having to re-compile over and over again whenever modifying and working with just one single .palm.config file. Of course, {{{palmbuild}}} has to be executed for each configuration.
    6866
    6967