Commit 8e3a2d7f authored by Michael Shigorin's avatar Michael Shigorin

main.mk: fix the help-related glitch

`make help/distro' would yield a needless complaint that's been suppressed for `make help' already... Fixes: f1479275
parent 2e131656
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment