From 8e3a2d7f0c01c82d418df9493504d61f3340920b Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Wed, 3 Jun 2015 13:25:45 +0300 Subject: [PATCH] main.mk: fix the help-related glitch `make help/distro' would yield a needless complaint that's been suppressed for `make help' already... Fixes: f147927522411ba92e9af706dc27f95e7c304812 --- main.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.mk b/main.mk index 5768bcc4..6cf49a79 100644 --- a/main.mk +++ b/main.mk @@ -20,8 +20,10 @@ IMAGE_FILE := $(lastword $(subst /, ,$(IMAGE_TARGET)))# generic.tar.gz IMAGE_NAME := $(firstword $(subst ., ,$(IMAGE_FILE)))# generic IMAGE_TYPE := $(subst $(IMAGE_NAME).,,$(IMAGE_FILE))# tar.gz ifeq ($(IMAGE_NAME),$(IMAGE_TYPE)$(IMAGE_GUESS)) +ifneq (help,$(IMAGE_CLASS)) $(warning no image type/extension specified, run make help?) endif +endif # readjustable ifeq (1,$(NUM_TARGETS))