How do you get the list of targets in a makefile? November 24, 2022 by Tarik Under Bash (at least), this can be done automatically with tab completion: make spacetabtab