Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow glob wildcard filename expansion for dependencies #40

Open
gvwilson opened this issue Sep 24, 2020 · 1 comment
Open

Allow glob wildcard filename expansion for dependencies #40

gvwilson opened this issue Sep 24, 2020 · 1 comment

Comments

@gvwilson
Copy link

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)"
@eobrain
Copy link
Owner

eobrain commented Oct 5, 2020

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:

  1. An array variable can be a glob, which gets expanded out into a larger array.
  2. The deps can be a reference to an array variable

I've got this basically working, but still need to figure out some corner cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants