[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:
parent
13c868ae3e
commit
4daa5ebb77
Notes:
git
2025-01-14 06:41:51 +00:00
13
lib/mkmf.rb
13
lib/mkmf.rb
@ -2381,6 +2381,19 @@ RULES
|
|||||||
# directory, i.e. the current directory. It is included as part of the
|
# directory, i.e. the current directory. It is included as part of the
|
||||||
# +VPATH+ and added to the list of +INCFLAGS+.
|
# +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)
|
def create_makefile(target, srcprefix = nil)
|
||||||
$target = target
|
$target = target
|
||||||
libpath = $DEFLIBPATH|$LIBPATH
|
libpath = $DEFLIBPATH|$LIBPATH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user