makefile help: funny rule

makefile help: funny rule

Post by JHGJH » Wed, 06 Nov 1996 04:00:00




> Hello everyone:

> I would like to do the following (simplified) makerule:

> foo_dependfiles = bar.out car.include dar.out
> bar_dependfiles = ear.include
> dar_dependfiles = far.include

> %.out : $(%_dependfiles)
>         (runscript...)

> "make foo.out" will make bar.out and dar.out, then foo.out.
> gnu make (3.73) does not like the $(%_..) syntax.
> It seems to evaluate to null.

> I've tried $($(join %,_dependfiles)), but that also evaluates
> to null.

> Somone suggested that I run makedepend, but this I am
> trying to avoid this.  There are many (1000s) of dependencies which
> would be a pain to type in.

> I'm running on sun OS 4.1.4.

> Any help would greatly be appreciated,

> john

PMKOLKLML
 
 
 

1. makefile help: funny rule

Hello everyone:

I would like to do the following (simplified) makerule:

foo_dependfiles = bar.out car.include dar.out
bar_dependfiles = ear.include
dar_dependfiles = far.include

%.out : $(%_dependfiles)
        (runscript...)

"make foo.out" will make bar.out and dar.out, then foo.out.
gnu make (3.73) does not like the $(%_..) syntax.
It seems to evaluate to null.

I've tried $($(join %,_dependfiles)), but that also evaluates
to null.

Somone suggested that I run makedepend, but this I am
trying to avoid this.  There are many (1000s) of dependencies which
would be a pain to type in.

I'm running on sun OS 4.1.4.

Any help would greatly be appreciated,

john

2. how to check who has fingered me

3. Makefile : Rule of one line & Rule of some lines

4. apache 1.3.19

5. Makefile rule help

6. I need italian keyboard map

7. - help needed writing Makefile rule -

8. Simple Newbie Question

9. Remove Rules.make from Makefiles (2/3)

10. Remove Rules.make from Makefiles (3/3)

11. makefile.am rules

12. Makefile inference rules and directories

13. Jam (was Re: Makefile suffix rule question)