Created
May 26, 2016 08:45
-
-
Save pmav99/360b513ecde0ffaba913a05d9d99d7f1 to your computer and use it in GitHub Desktop.
makefile template
This file contains 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
.PHONY: list | |
list: | |
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment