help-make
[Top][All Lists]
Advanced

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

Re: intermediate files


From: Oleksandr Gavenko
Subject: Re: intermediate files
Date: Wed, 20 Oct 2010 11:58:25 +0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5

On 20.10.2010 8:36, ali hagigat wrote:
Can an intermediate file be created automatically by a
makefile?(without .INTERMEDIATE target) Please write a simple example.
Thank you.

%.c: %.c.in
        cp $< $@

%.o: %.c
        cp $< $@

  $ echo hello >my.c.in
  $ make my.o
cp my.c.in my.c
cp my.c my.o
rm my.c     #   THAT IS?

--
С уважением, Александр Гавенко.



reply via email to

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