I’ve the following code which run on make gnu file
apps := $(shell tbd run apps)
apps := $(subst ],,$(subst [,,$(app)))
Now I want to print the app value and I tried with
@echo $(app)
And I got error
Makefile:12: *** commands commence before first target. Stop.
update:
currently my code is like
apps := $(shell tbd run apps)
apps := $(subst ],,$(subst [,,$(apps)))
build:
@for app in $(apps) ; do \
bsd start $$app ; \
done
And if I try it like this I got error
start:
apps := $(shell tbd run apps)
apps := $(subst ],,$(subst [,,$(apps)))
build:
@for app in $(apps) ; do \
bsd start $$app ; \
done