GNU Info

Info Node: (make.info)Functions

(make.info)Functions


Next: Running Prev: Conditionals Up: Top
Enter node , (file) or (file)node

Functions for Transforming Text
*******************************

   "Functions" allow you to do text processing in the makefile to
compute the files to operate on or the commands to use.  You use a
function in a "function call", where you give the name of the function
and some text (the "arguments") for the function to operate on.  The
result of the function's processing is substituted into the makefile at
the point where the function appears when `make' expands the construct
in which it appears. Some constructs are expanded when `make' first
reads the makefile and others are expanded later. (Note: Reading
Makefiles.)

Syntax of Functions
How to write a function call.
Text Functions
General-purpose text manipulation functions.
File Name Functions
Functions for manipulating file names.
Foreach Function
Repeat some text with controlled variation.
If Function
Conditionally expand a value.
Call Function
Expand a user-defined function.
Origin Function
Find where a variable got its value.
Shell Function
Substitute the output of a shell command.
Make Control Functions
Functions that control how make runs.

automatically generated by info2www version 1.2.2.9