Commit 9fc8689d authored by Anton Midyukov's avatar Anton Midyukov

log.mk, profile.mk: Output errors Step 3 to BUILDLOG and on screen

parent dad8f98e
...@@ -25,9 +25,11 @@ ifeq (2,$(DEBUG)) ...@@ -25,9 +25,11 @@ ifeq (2,$(DEBUG))
SHELL += -x SHELL += -x
endif endif
LOG = >>$(BUILDLOG) 2>&1 LOG = >>$(BUILDLOG) 2>&1
LOG_STDERR = 2> >(tee -a $(BUILDLOG) >&2) 1>>$(BUILDLOG)
else else
MAKE += -s MAKE += -s
LOG = 2>>$(BUILDLOG) >/dev/null LOG = 2>>$(BUILDLOG) >/dev/null
LOG_STDERR = 2> >(tee -a $(BUILDLOG) >&2) 1>/dev/null
endif endif
ifeq (,$(filter-out $(DIRECT_TARGETS),$(MAKECMDGOALS))) ifeq (,$(filter-out $(DIRECT_TARGETS),$(MAKECMDGOALS)))
......
...@@ -132,7 +132,8 @@ profile/dump-vars: ...@@ -132,7 +132,8 @@ profile/dump-vars:
fi $(LOG) fi $(LOG)
# step 3 entry point: copy the needed parts into BUILDDIR # step 3 entry point: copy the needed parts into BUILDDIR
profile/populate: SHELL=/bin/bash
profile/populate: profile/finalize profile/dump-vars make-aptbox profile/populate: profile/finalize profile/dump-vars make-aptbox
@for dir in sub.in features.in pkg.in; do \ @for dir in sub.in features.in pkg.in; do \
$(MAKE) -C $$dir $(LOG); \ $(MAKE) -C $$dir $(LOG_STDERR); \
done done
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