[CRIU] [PATCH] zdtm/make: return .PHONY for default

Kir Kolyshkin kir at openvz.org
Tue Jan 14 14:38:32 PST 2014


On 01/14/2014 11:39 AM, Andrey Vagin wrote:
> I don't why it is required here, but make doesn't work w/o it
>
> make[2]: Leaving directory `<https://10.30.26.89/job/CRIU/ws/test/zdtm/live/static'>
> make[1]: Leaving directory `<https://10.30.26.89/job/CRIU/ws/test/zdtm/live'>
> set -e; for d in lib live; do make -C $d default; done
> make[1]: Entering directory `<https://10.30.26.89/job/CRIU/ws/test/zdtm/lib'>
> make[1]: *** No rule to make target `default'.  Stop.
> make[1]: Leaving directory `<https://10.30.26.89/job/CRIU/ws/test/zdtm/lib'>
> make: *** [default] Error 2
>
> Signed-off-by: Andrey Vagin <avagin at openvz.org>

Acked-by: Kir Kolyshkin <kir at openvz.org>

> ---
>   test/zdtm/Makefile      | 1 +
>   test/zdtm/live/Makefile | 1 +
>   2 files changed, 2 insertions(+)
>
> diff --git a/test/zdtm/Makefile b/test/zdtm/Makefile
> index 66fa15b..5e0ba42 100644
> --- a/test/zdtm/Makefile
> +++ b/test/zdtm/Makefile
> @@ -1,6 +1,7 @@
>   SUBDIRS	=	lib live
>   
>   default:	all
> +.PHONY: default
>   
>   %:
>   	set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
> diff --git a/test/zdtm/live/Makefile b/test/zdtm/live/Makefile
> index 0a55104..0640bb4 100644
> --- a/test/zdtm/live/Makefile
> +++ b/test/zdtm/live/Makefile
> @@ -1,6 +1,7 @@
>   SUBDIRS	=	streaming transition static
>   
>   default:	all
> +.PHONY: default
>   
>   %:
>   	set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done



More information about the CRIU mailing list