Re: GNU make: multiple patterns for prerequisites
Henrik Carlqvist <[email protected]> Mon, 16 Nov 2009 23:01:10 +0100
| Newsgroups | gmane.comp.gnu.utils |
|---|---|
| Organization | SunSITE.dk - Supporting Open source |
| Message-ID | <[email protected]> |
bocadillodeatun <[email protected]> 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