help-make
[Top][All Lists]
Advanced

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

passing targets to sub-make


From: Yossi Itzkovich
Subject: passing targets to sub-make
Date: Sun, 21 Jul 2002 14:57:33 +0300 (IDT)

Hi,

I have  PKGS  set to a list of sub directories.

I want to launch the main Makefile with a target (say, clean) and that this one
will be sent to every sub make.

I use:

define  for_loop
for pkg in $(PKGS); do $(MAKE)  -C $$pkg/obj  -f Makefile.pkg  $@; done
endef

clean:
        $(for_loop)



Is it OK?  It does work, but I think I can't control this way the -j and -l
option.

Thanks for any help.

Yossi





reply via email to

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