[LLVMdev] llvm-test Makefile question

Chris Lattner sabre at nondot.org
Thu Oct 20 17:53:34 PDT 2005


On Thu, 20 Oct 2005, Michael McCracken wrote:
> The problem is that other directories, like the top level, or say
> MultiSource/Benchmarks/, neither 'make profile' nor 'make pmf' work.
> It simply says this:
>
> % make pmf
> make: Nothing to be done for `pmf'.

Try adding:

RecursiveTargets += pmf

If that doesn't work, try adding something like this:

ifdef DIRS
pmf ::
         $(VERB) for dir in ${DIRS}; do \
                 if [ ! -f $$dir/Makefile ]; \
                 then \
                         $(MKDIR) $$dir; \
                         cp $(SourceDir)/$$dir/Makefile $$dir/Makefile; \
                 fi; \
                 ($(MAKE) -C $$dir $@ $(MFLAGS)) || exit 1; \
         done
endif

-Chris

> Am I missing something here - shouldn't I be able to set it up so I
> can build the whole suite with my option? I've attached my diff for
> Makefile.programs, but I think the problem exists for profile also
> without my changes. Maybe I'm just missing a detail about gmake
> here...
>
> Thanks for any help,
> -mike
> --
> Michael McCracken
> UCSD CSE PhD Candidate
> research: http://www.cse.ucsd.edu/~mmccrack/
> misc: http://michael-mccracken.net/blog/
>

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/




More information about the llvm-dev mailing list