main.mk: fix the help-related glitch

`make help/distro' would yield a needless complaint
that's been suppressed for `make help' already...

Fixes: f147927522
This commit is contained in:
Michael Shigorin 2015-06-03 13:25:45 +03:00
parent 2e131656d1
commit 8e3a2d7f0c

View File

@ -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))