Sample Header Ad - 728x90

How to list all targets in make?

50 votes
4 answers
45813 views
Let's say you have a project structure with lots of Makefiles and there is a top level Makefile that includes all the other. How can you list all the possible targets? I know writing make and then tabbing to get the suggestions would generally do the trick, but in my case there are 10000 targets. Doing this passes the results through **more** and also for some reason scrolling the list results in a freeze. Is there another way?
Asked by Sogartar (661 rep)
Sep 16, 2015, 01:26 PM
Last activity: Jul 23, 2025, 02:33 PM