On Mon, 2010-02-01 at 22:28 -0600, Peng Yu wrote: > I have the following makefile, by which I want it to touch the current > directory if the file 'a' is changed. It seems to be working. But I > want to make sure if '.' has some special meaning in make (by simply > looking though the index, I don't find any special meaning). Could > somebody let me know? > > $ cat Makefile > .PHONY: all > > all: . > > .: a > touch $@
There is no special meaning to ".". Technically the POSIX standard reserves target names that start with period and consist of one or more uppercase characters as reserved for implementation extensions. However, a simple period is not reserved and is treated as a normal target. -- ------------------------------------------------------------------------------- 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] http://lists.gnu.org/mailman/listinfo/help-make
