% in makefile target match range
I was reading a makefile in someone else's C code. I found the percentage sign use and looked up the GNU make manual. In the manual, the sign is illustrated in a snippet as follows:
The manual tells that % is a pattern matching any nonempty substring, but my question is in which range/files to match? For example, if I type `ls *' in directory /tmp, the wildcard * matches file names under /tmp. The percentage sign in makefile must have a matching range/place/files to match file names. I couldn't find the explanation in the manual. Could anyone help to explain?
Thanks a lot!