[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Typo in The GNU Make Manual
From: |
Mikko Tapani Reinikainen |
Subject: |
Typo in The GNU Make Manual |
Date: |
Fri, 23 Aug 2002 15:17:06 +0300 (EET DST) |
Hello,
I think I have located a small typo in The GNU Make Manual
http://www.gnu.org/manual/make/. In the section Phony Targets there is
this example:
----
By declaring the subdirectories as phony targets (you must do this as the
subdirectory obviously always exists; otherwise it won't be built) you
can remove these problems:
SUBDIRS = foo bar baz
.PHONY: subdirs $(SUBDIRS)
subdirs: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $
^^
foo: baz
----
Shouldn't there be "$@" in the position marked with ^^?
The unaltered version of the example gives the following error message:
----
$ make -v
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i586-pc-linux-gnu
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Report bugs to <address@hidden>.
$ make
make -C
make: option requires an argument -- C
Usage: make [options] [target] ...
Options:
----
Regards,
- Mikko Reinikainen
- Typo in The GNU Make Manual,
Mikko Tapani Reinikainen <=