help-make
[Top][All Lists]
Advanced

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

Re: Rule producing several targets at once?


From: Alberto Luaces
Subject: Re: Rule producing several targets at once?
Date: Wed, 28 Feb 2018 12:15:07 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Sébastien Hinderer writes:

> Dear all,
>
> Is it possible to tell make that one produce several files at once?
>
> Assume the following example:
>
> b c: a
>         cp a b
>         cp a c
>

You could just

all: b c

b c: a
        cp a $@

"all" will be executed by default since it is the first rule.
-- 
Alberto




reply via email to

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