help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why does touching Makefile allow make to know how to build dependenc


From: Erik Rull
Subject: Re: why does touching Makefile allow make to know how to build dependency?
Date: Fri, 04 Mar 2011 10:45:10 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.17) Gecko/20110123 Lightning/1.0b1 SeaMonkey/2.0.12

Graham Menhennitt wrote:
In a Makefile in a subdirectory of our top level directory, I have some
rules:


outfile: infile

cmd<  infile>  outfile



anotherFile: outfile


Have you considered newlines and tabs set correctly?

It should look like this:
outfile: infile
        cmd <  infile > outfile
(where the spaces before cmd must be a tab char!)
No blank line between the first and the second line.

Regards,

                 Graham

Best regards,

Erik



reply via email to

[Prev in Thread] Current Thread [Next in Thread]