On Thu, 2011-04-21 at 11:17 +0800, baumann Pan wrote: > .PHONY: %.only > %.only: > hi there $@ > > why when there is a file match %.only, e.g. a.only > make a.only will not not show hi there a.only.
The .PHONY target doesn't take patterns as prerequisites. Only fully-qualified target names. The line ".PHONY: %.only" declares the explicit target name '%.only' to be phony, not any target that matches the pattern "%.only". -- ------------------------------------------------------------------------------- Paul D. Smith <[email protected]> Find some GNU make tips at: http://www.gnu.org http://make.mad-scientist.net "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
