Re: Recursive Makefile howto

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

 



On Fre, 2012-01-27 at 10:02 +0100, Kristof Provost wrote:
[...]
> Try something like this instead:
> 
> build:
>         for d in $(DIRS) ; \
>         do \
>                 $(MAKE) -C $$d $@ || exit $? ; \
>         done

Or 

build:
        set -e; for d in $(DIRS); \
        do \
                $(MAKE) -C $$d $@; \
        done

Read bash' manual page for what "set -e" does.

	Bernd
-- 
Bernd Petrovitsch                  Email : bernd@xxxxxxxxxxxxxxxxxxx
                     LUGA : http://www.luga.at


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux