help-make
[Top][All Lists]
Advanced

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

Re: "Easy/stupid" question: How to insert nextline chars ??


From: Cyril Bouthors
Subject: Re: "Easy/stupid" question: How to insert nextline chars ??
Date: Mon, 9 Apr 2001 22:57:50 +0200

Michael Sterrett -Mr. Bones.- writes:
 > make -n diff looks like this:
 > 
 > diff /auto/include/foo.h foo.h; diff /auto/include/bar.h bar.h; diff 
 > /auto/include/baz.h baz.h;

I suggest using this :

################
HFILES = \
        foo.h \
        bar.h \
        baz.h

PRODUCTION_LOCATION=/auto/include

diff: $(HFILES:%=%.diff)

%.diff: $(PRODUCTION_LOCATION)/%
        -diff $< $(patsubst %.diff,%, $@)

################

Like this, make will run one target foreach diff, you'll see them one
by one.

I hope it helps.

PS: a .PHONY target may be used if needed.
-- 
Cyril Bouthors  phone:+33 1 41 66 47 06
                  fax:+33 1 41 66 47 10



reply via email to

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