Last active
April 8, 2017 21:50
-
-
Save dedeibel/3a02e892bbfbedb646ba27dbe7c68606 to your computer and use it in GitHub Desktop.
list all make targets to mark them as phony
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list-phony: | |
@perl -ne 'push @a, $$1 if m/^([\w\d-]+):\s/; END { print ".PHONY: ", join(" ", sort @a), "\n" }' Makefile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment