Skip to content

Instantly share code, notes, and snippets.

@squeedee
Created August 8, 2019 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save squeedee/5c4057b52362b5525e292b09375dc267 to your computer and use it in GitHub Desktop.
Save squeedee/5c4057b52362b5525e292b09375dc267 to your computer and use it in GitHub Desktop.
Tool to print the evaluated inputs to a Makefile target - great for testing your makefile `$(shell find ....)` commands
target="${1:-you forgot a target}"
echo "Target is ${target}"
make -np ${target} | grep -e "^${target}:"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment