make: Guile Interface

1 
1 12.1.2 Interfaces from Guile to 'make'
1 --------------------------------------
1 
1 In addition to the 'guile' function available in makefiles, 'make'
1 exposes some procedures for use in your Guile scripts.  At startup
1 'make' creates a new Guile module, 'gnu make', and exports these
1 procedures as public interfaces from that module:
1 
1 'gmk-expand'
1      This procedure takes a single argument which is converted into a
1      string.  The string is expanded by 'make' using normal 'make'
1      expansion rules.  The result of the expansion is converted into a
1      Guile string and provided as the result of the procedure.
1 
1 'gmk-eval'
1      This procedure takes a single argument which is converted into a
1      string.  The string is evaluated by 'make' as if it were a
1      makefile.  This is the same capability available via the 'eval'
1      function (⇒Eval Function).  The result of the 'gmk-eval'
1      procedure is always the empty string.
1 
1      Note that 'gmk-eval' is not quite the same as using 'gmk-expand'
1      with the 'eval' function: in the latter case the evaluated string
1      will be expanded _twice_; first by 'gmk-expand', then again by the
1      'eval' function.
1