[Top][All Lists]

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

Re: make and remote dependencies

From: Paul Smith
Subject: Re: make and remote dependencies
Date: Mon, 16 Apr 2012 02:09:54 -0400

On Mon, 2012-04-16 at 12:33 +0800, Paul Wise wrote:
> I'm trying to get remote dependencies[1] to work. Is there any way to
> get the example Makefile [2] to always run wget to try and download
> remote.c but only rebuild remote.o and remote when remote.c was updated
> by wget? With [2], make always runs wget and always runs gcc.
>      1.
>      2.

Remove the .PHONY; that forces all targets that depend on it to always


        remote.c: FORCE
                wget -O tmp -N || { 
rm remote.c; exit 1; }
                cmp tmp $@ || cp tmp $@
                rm -f tmp

 Paul D. Smith <address@hidden>          Find some GNU make tips at:            
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

reply via email to

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