help-gnu-utils
[Top][All Lists]
Advanced

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

Re: [make]wildcard question


From: Jean-Rene David
Subject: Re: [make]wildcard question
Date: Fri, 20 Apr 2007 14:29:31 -0500
User-agent: slrn/0.9.8.1pl1 (Debian)

* FlorinBr [2007.04.20 18:31]:
> Here is what I have currently in my makefile:
>
> ...
> ASTPATH=ast/
> VISITORPATH=visitors/
> SYMPATH=symtab/
> SYM_OBJS=$(wildcard $(SYMPATH)*.o)
> VISITOR_OBJS=$(wildcard $(VISITORPATH)*.o)
> AST_OBJS=$(wildcard $(ASTPATH)*.o)
> MODULES = $(SYM_OBJS)
> MODULES +=$(VISITOR_OBJS)
> MODULES +=$(AST_OBJS)
> ...
> build: $(OBJS)
           ^^^^
Where does this come from?

The idiomatic way to do this is to generate the object file
list from the source file list, not from the output of the
build command. Is there something preventing you from doing
this?

-- 
JR


reply via email to

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