reports.mk: Rewrite reports directory

Previously, when rebuilding, the new reports were copied as a
subdirectory.
This commit is contained in:
Anton Midyukov 2021-04-16 15:31:03 +07:00
parent e8fcdaf8e3
commit 88d0d01647

View File

@ -28,6 +28,7 @@ endef
all: reports/targets reports/scripts reports/cleanlog reports/contents
@if [ -n "$(IMAGE_OUTPATH)" ]; then \
rm -fr "$(LOGDIR)/$(IMAGE_OUTFILE).reports"; \
cp -a "$(REPORTDIR)" "$(LOGDIR)/$(IMAGE_OUTFILE).reports"; \
fi