Created
April 9, 2017 03:56
-
-
Save tjcelaya/0fad09fac11b1fe9e0e21648734312b6 to your computer and use it in GitHub Desktop.
makefile list
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