[DOC] About create_makefile

Describe two features that were missing from the documentation:

- yields configuration part if a block is given.
- "depend" file will be included.
This commit is contained in:
Nobuyoshi Nakada 2025-01-14 15:34:17 +09:00
parent 13c868ae3e
commit 4daa5ebb77
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2025-01-14 06:41:51 +00:00

View File

@ -2381,6 +2381,19 @@ RULES
# directory, i.e. the current directory. It is included as part of the
# +VPATH+ and added to the list of +INCFLAGS+.
#
# Yields the configuration part of the makefile to be generated, as an array
# of strings, if the block is given. The returned value will be used the
# new configuration part.
#
# create_makefile('foo') {|conf|
# [
# *conf,
# "MACRO_YOU_NEED = something",
# ]
# }
#
# If "depend" file exist in the source directory, that content will be
# included in the generated makefile, with formatted by depend_rules method.
def create_makefile(target, srcprefix = nil)
$target = target
libpath = $DEFLIBPATH|$LIBPATH