+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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html