The include directive can include files by URL (ftp, http or https) and local files.

When including local files path must be relative to includer makefile directory, but this isn't explained in README.txt.

I've attachted a patch for README.txt that explains that.

Actual text is:

An array of makefiles to include. Each include may be a local path or a direct
URL to the makefile. Includes are appended in order with the source makefile
appended last, allowing latter makefiles to override the keys/values of former
makefiles.

**Example:**

    includes[example] = "example.make"
    includes[remote] = "http://www.example.com/remote.make"

Proposed text is:

An array of makefiles to include. Each include may be a local relative path
to the includer makefile directory or a direct URL to the makefile. Includes
are appended in order with the source makefile appended last, allowing latter
makefiles to override the keys/values of former makefiles.

**Example:**

    includes[example] = "example.make"
    includes[example_relative] = "../example_relative/example_relative.make"
    includes[remote] = "http://www.example.com/remote.make"

Comments

tunic’s picture

Status: Active » Needs review

Changing to "needs review" because a patch is included.

dmitrig01’s picture

Status: Needs review » Fixed

Thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.