Makefile, reports.mk: use variable REPORT from ~/.mkimage/profiles.mk

You must use the GNU MAKE variable, not a shell variable, and must
pass the REPORT variable to reports.mk.
This commit is contained in:
Anton Midyukov 2021-06-02 03:46:06 +07:00
parent 9fba17972c
commit 187d0a5d51

View File

@ -63,8 +63,8 @@ SHELL = /bin/bash
say "** ARCH: $$ARCH"; \ say "** ARCH: $$ARCH"; \
fi; \ fi; \
if $(MAKE) -f main.mk ARCH=$$ARCH $@ $(POSTPROC); then \ if $(MAKE) -f main.mk ARCH=$$ARCH $@ $(POSTPROC); then \
if [ -n "$$REPORT" ]; then \ if [ -n "$(REPORT)" ]; then \
$(MAKE) -f reports.mk ARCH=$$ARCH; \ $(MAKE) -f reports.mk ARCH=$$ARCH REPORT=$(REPORT); \
fi; \ fi; \
else \ else \
exit 1; \ exit 1; \