Hello,

I'm wondering how to generate multiple files with different extensions
from one centralized file source (source in m4 in my application but I
won't explains unwanted details here).

The Makefile looks like (as simple as possible):

LIST = file.out1 file.out2

all: $(LIST)

%.out1 %.out2: %.source
        cat $< > $@

Basicly, I want the file named "file.source" to be outputed to
file.out1 and file.out2 (they will be the same in this example).

$ touch file.source

$ make all
cat file.source > file.out1

#make has generated the first file.


$ make all
cat file.source > file.out2

#the second.

I just don't understand why make can't build several files from the
same target at the same time...

make think file.out2 has been updated ?

Is there a bug in my Makefile ? How should I do ?

I use "GNU Make version 3.79"

-- 
Cyril Bouthors mailto:[EMAIL PROTECTED]
                phone:+33 1 55 26 58 85
                  fax:+33 1 55 26 59 00

Reply via email to