Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Depending on other glob goals

You can make one glob goal depend on another glob goal using @depends_on @item [glob_goal1 glob_goal2 ...] syntax.

This way the dependency goal will be invoked for the same implicit $ITEM.

Example:

@goal processed @glob 'files/*'
  echo "processing $ITEM..."

@goal uploaded @glob 'files/*'
@depends_on @item processed
  echo "uploading $ITEM..."

Running ./makesure uploaded will show:

  goal 'processed@files/1.csv' ...
processing files/1.csv...
  goal 'uploaded@files/1.csv' ...
uploading files/1.csv...
  goal 'processed@files/2.csv' ...
processing files/2.csv...
  goal 'uploaded@files/2.csv' ...
uploading files/2.csv...
  goal 'uploaded' [empty].