On 5 Feb 1999, in message <[EMAIL PROTECTED]>
[ISO-8859-1 Jos�_Augusto_Vasconcellos_Neto] <[EMAIL PROTECTED]> wrote:
| > .PHONY: backup
| > backup: *.C *.h *.pl Makefile \
| > @file=`date +%y-%m-%d.%H.%M`.tgz ; \
| > echo Making backup $$file ; \
[...]
| > When I run this, I get the following error:
| > sarnoff:~/iote/current 90> make backup
| > make: *** No rule to make target `file=`date', needed by `backup'.
| > Stop.
| > Does anyone see what I'm doing wrong?
Ah, yes - that \ on the end of the backup: target folds the first line of the
actions into the target list. Drop it.
| I'm not an expert, but try this:
[...]
| and, better, delete all "; \" pairs at the end of the lines.
That would be really dumb. Because the first line sets $file, and by
removing the ; \ stuff you break the commands into separate shell
invocations, which won't know about the earlier $file definition.
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
It is the cunning of form to veil itself continually in the evidence
of content. It is the cunning of the code to veil itself and to produce
itself in the obviousness of value. - Baudrillard