[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Usage: (makefile-script text)
This function will take ordinary shell script text and reformat it
so that it will work properly inside of a makefile shell script.
Not every shell construct can be supported; the intent is to have
most ordinary scripts work without much, if any, alteration.
The following transformations are performed on the source text:
make
renders it impossible to use multi-line
constructs anyway.
$(<command>)
will not work. Though some
make
s accept ${var}
constructs, this function will
assume it is for shell interpretation and double the dollar character.
You must use $(var)
for all make
substitutions.
This function is intended to be used approximately as follows:
$(TARGET) : $(DEPENDENCIES) <+ (out-push-new) +> ....mostly arbitrary shell script text.... <+ (makefile-script (out-pop #t)) +> |
Arguments:
text - the text of the script
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated by Bruce Korb on September, 30 2006 using texi2html 1.76.