WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH][RESUBMIT] tools top level makefile cleanup

To: Jerone Young <jyoung5@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH][RESUBMIT] tools top level makefile cleanup
From: Adam Heath <doogie@xxxxxxxxxxxxx>
Date: Fri, 25 Mar 2005 12:38:42 -0600 (CST)
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 25 Mar 2005 18:39:45 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1111770437.7590.8.camel@thinkpad>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <1111770437.7590.8.camel@thinkpad>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
On Fri, 25 Mar 2005, Jerone Young wrote:

> A lot of good discussion on the how the makefile should be for the past
> week. I waited to see how everything would pan out. So I left things
> simple and fixed up the patch.
>
> Signed-off-by: Jerone Young <jyoung5@xxxxxxxxxx>
>
> --- xen-unstable/tools/Makefile 2005-03-24 22:16:33.000000000 -0600
> +++ xen-unstable.work/tools/Makefile 2005-03-25 10:59:12.000000000 -0600
> @@ -1,37 +1,36 @@
> +XEN_ROOT = ../
> +include $(XEN_ROOT)/tools/Rules.mk
>
> -all:
> - $(MAKE) -C check
> - $(MAKE) -C libxutil
> - $(MAKE) -C libxc
> - $(MAKE) -C misc
> - $(MAKE) -C examples
> - $(MAKE) -C xentrace
> - $(MAKE) -C python
> - $(MAKE) -C xfrd
> - $(MAKE) -C xcs
> - $(MAKE) -C ioemu
> +SUBDIRS :=
> +SUBDIRS += libxutil
> +SUBDIRS += libxc
> +SUBDIRS += misc
> +SUBDIRS += examples
> +SUBDIRS += xentrace
> +SUBDIRS += python
> +SUBDIRS += xfrd
> +SUBDIRS += xcs
> +SUBDIRS += ioemu
> +
> +.PHONY: all install clean check check_clean
> +
> +all: check
> + @for subdir in $(SUBDIRS); do \
> + $(MAKE) -C $$subdir $@ || exit -1; \
> + done

How is this a valid makefile?  Where's the tab?

>
> -install:
> +install: check
> + @for subdir in $(SUBDIRS); do \
> + $(MAKE) -C $$subdir $@ || exit -1; \
> + done
> +
> +clean: check_clean
> + @for subdir in $(SUBDIRS); do \
> + $(MAKE) -C $$subdir $@ || exit -1; \
> + done
> +
> +check:
> $(MAKE) -C check
> - $(MAKE) -C libxutil install
> - $(MAKE) -C libxc install
> - $(MAKE) -C misc install
> - $(MAKE) -C examples install
> - $(MAKE) -C xentrace install
> - $(MAKE) -C python install
> - $(MAKE) -C xfrd install
> - $(MAKE) -C sv install
> - $(MAKE) -C xcs install
> - $(MAKE) -C ioemu install
> -
> -clean build:
> - $(MAKE) -C check $@
> - $(MAKE) -C libxutil $@
> - $(MAKE) -C libxc $@
> - $(MAKE) -C misc $@
> - $(MAKE) -C examples $@
> - $(MAKE) -C xentrace $@
> - $(MAKE) -C python $@
> - $(MAKE) -C xfrd $@
> - $(MAKE) -C xcs clean
> - $(MAKE) -C ioemu clean
> +
> +check_clean:
> + $(MAKE) -C check clean

Even here, the source file is missing the tab.  Did your editor barf?


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel