Skip to content

Commit

Permalink
feat(scripts): ✨ Use regex to find Makefile targets
Browse files Browse the repository at this point in the history
  • Loading branch information
ddanier committed May 30, 2024
1 parent c8c0ef9 commit ce820cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/nurify.nu
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def nurify-from-makefile [] {
prepare-nurfile
open ( glob "[Mm]akefile" | first )
| lines
| find ':'
| find --regex '^[\w\.-]+\s*:'
| where ($it | str starts-with '.') == false
| split column ':' target
| get target
Expand Down

0 comments on commit ce820cb

Please sign in to comment.