bajel
bajel copied to clipboard
Allow glob wildcard filename expansion for dependencies
I would like to be able to write:
SOURCE: "**/index.md"
and then use SOURCE as a dependency (as per #26) and in commands:
output.html:
deps:
- $(SOURCE)
exec: "transmogrify output.html $(SOURCE)"
Working on a fix that does this, but with a slightly different syntax:
SOURCE: ["**/index.md"]
output.html:
deps: $(SOURCE)
exec: "transmogrify output.html $(SOURCE)"
The changes are:
- An array variable can be a glob, which gets expanded out into a larger array.
- The
depscan be a reference to an array variable
I've got this basically working, but still need to figure out some corner cases.