[Top][All Lists]

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

Re: Factorizing commands

From: Mike Gibson
Subject: Re: Factorizing commands
Date: Tue, 8 Jul 2003 08:26:28 -0600
User-agent: KMail/1.5.1

This is how I would do it:

V_TO_VO = make-vo $(@:%.vo=%.v)

foo.vo : foo.v joe.vo jane.vo

joe.vo : joe.v jack.vo

On Tuesday 08 July 2003 06:30 am, Sébastien Hinderer wrote:
> Dear all,
> I would like to write a Makefile to compile .vo (object files) from .v
> (source files).
> Apart from foo.v, foo.vo depends on a lot of .vo files, whose names can
> _not_ be deduced syntactically from the name of the target.
> However, every rule that produces a .vo file from a .v file should use the
> same command.
> So, my question is : is it possible to write the vo-production command only
> once, and having the other rules just for telling make in which order to
> compile the targets.
> Thank you very much for your help,
> Sébastien.
> _______________________________________________
> Help-make mailing list
> address@hidden

reply via email to

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