In the below code:
GREEN := "\e[1;33m]"
NCOLOR := "\e[0m"
INFO := @bash -c '\
printf $(GREEN); \
echo "=> $$1"; \
printf $(NCOLOR)' VALUE
ifeq (tag, $(firstword $(MAKECMDGOALS)))
ifneq (2, $(words $(MAKECMDGOALS)))
$(error Wrong number of tag arguments)
endif
LIST_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)), $(MAKECMDGOALS))
VERSION := $(word 1, $(LIST_ARGS))
COMMIT_HASH := $(word 2, $(LIST_ARGS))
ifeq ($(LIST_ARGS),)
$(error You must specify a tag)
endif
$(eval $(LIST_ARGS):;@:)
endif
Indentation is done using tabs
Error: Makefile:12: *** commands commence before first target. Stop.
occurs after running make tag
If I remove Line 11, 12 and 13 it works.
Line 24 is space indented, rest all is TAB indented
How to resolve this indentation error?