[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiple targets with one command
From: |
Noel Yap |
Subject: |
Re: Multiple targets with one command |
Date: |
Mon, 24 Nov 2003 17:02:40 -0500 |
The issue is that make will execute the action once for each target.
Paul had posted a solution to this issue, but, IMHO, using marker files for
such a thing is a bit of a hack.
Noel
Noel
Martin d'Anjou wrote:
>
> Noel,
>
> >Also, I do think it would be a good feature for GNU make to be able to
> >handle
> >commands that create more than one output file from one input file. Does
> >anyone know if this has been requested in Savannah?
> >
>
> I had the same problem, and I usually end up creating a rule and commands
> that look like this:
>
> $(TARGET_DIR)/%.a $(TARGET_DIR)/%.b $(TARGET_DIR)/%.c: %.src
> my_script $<
> mv $*.a $(TARGET_DIR)
> mv $*.b $(TARGET_DIR)
> mv $*.c $(TARGET_DIR)
>
> Is that the end result you are looking for? I do not see how this burden
> could be on make itself...
>
> Martin
>
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-make
--
NOTICE: If received in error, please destroy and notify sender. Sender does
not waive confidentiality or privilege, and use is prohibited.
- Multiple targets with one command, Martin Schröder, 2003/11/20
- Re: Multiple targets with one command, Noel Yap, 2003/11/20
- Re: Multiple targets with one command, Martin Schröder, 2003/11/21
- Re: Multiple targets with one command, Noel Yap, 2003/11/21
- Re: Multiple targets with one command, Martin Schröder, 2003/11/21
- Re: Multiple targets with one command, Noel Yap, 2003/11/21
- Re: Multiple targets with one command, Paul D. Smith, 2003/11/22
- Re: Multiple targets with one command, Paul D. Smith, 2003/11/22