Subject: Re: [PATCH 33/40] When installing, be prepared that template_dir may be relative.

From: Paolo Bonzini <[email-masked]>
Date: Thu, 28 Feb 2008 10:49:15 +0100

> +ifeq ($(firstword $(subst /, ,$(template_dir))),..)
> +template_instdir = $(gitexecdir)/$(template_dir)
> +else
> +template_instdir = $template_dir
> +endif
> +export template_instdir

This is just a little more versatile:

ifeq ($(firstword $(subst /,
,ALONE-IF-ABSOLUTE$(template_dir))),ALONE-IF-ABSOLUTE)
template_instdir = $template_dir
else
template_instdir = $(gitexecdir)/$(template_dir)
endif
export template_instdir

Paolo