[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU make: multiple patterns for prerequisites
From: |
Henrik Carlqvist |
Subject: |
Re: GNU make: multiple patterns for prerequisites |
Date: |
Mon, 16 Nov 2009 23:01:10 +0100 |
User-agent: |
Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) |
bocadillodeatun <bocadillodeatun@gmail.com> wrote:
> I have somethign like this:
>
> one.o two.o : %.o :%.c
> However, some of my source files can be either ".c" or ".S".
> So... is there any way to tell "make" to look in VPATH for files that
> match either one or another ?
Yes, use two rules:
one.o two.o : %.o :%.c
one.o two.o : %.o :%.S
> I know I could first "filter" my files in two groups, and then create
> two rules... I was just wondering if this feature can be accessed
> by a single rule.
AFAIK it is not possible with only one rule.
regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc3(at)poolhem.se Examples of addresses which go to spammers:
root@localhost postmaster@localhost