Skip to content

Commit

Permalink
[DOC] About create_makefile
Browse files Browse the repository at this point in the history
Describe two features that were missing from the documentation:

- yields configuration part if a block is given.
- "depend" file will be included.
  • Loading branch information
nobu committed Jan 14, 2025
1 parent 13c868a commit 4daa5eb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/mkmf.rb
Original file line number Diff line number Diff line change
@@ -2381,6 +2381,19 @@ def depend_rules(depend)
# 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

0 comments on commit 4daa5eb

Please sign in to comment.