Next: max - maximum value in list, Previous: make-gperf - build a perfect hash function program, Up: Common Scheme Functions [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.
AC_CONFIG_FILES
sed expressions, similar to:
sed "/^@ifdef foo/d;/^@endif foo/d;/^@ifndef foo/,/^@endif foo/d"
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
Next: max - maximum value in list, Previous: make-gperf - build a perfect hash function program, Up: Common Scheme Functions [Contents][Index]