* 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