Re: [make]wildcard question

Jean-Rene David <[email protected]>
Newsgroups gmane.comp.gnu.utils
Message-ID <[email protected]>
* 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.