summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-01-02 19:06:54 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-01-02 19:07:45 (GMT)
commit56a8b1c202406568171f2584e48a478c29404823 (patch)
treeb5fc2c88f8f80b057bfd087b8ec52a000d07a681
parent59c940ea690bce7096cbffc92cf6b6bbd253b304 (diff)
downloadmxe-56a8b1c202406568171f2584e48a478c29404823.zip
mxe-56a8b1c202406568171f2584e48a478c29404823.tar.gz
mxe-56a8b1c202406568171f2584e48a478c29404823.tar.bz2
Add MXE_VERBOSE variable
Define to view full and not `tail`'d log if building fails at build time. Signed-off-by: Timothy Gu <timothygu99@gmail.com>
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8fca936..efe0e63 100644
--- a/Makefile
+++ b/Makefile
@@ -212,7 +212,11 @@ $(PREFIX)/$(3)/installed/$(1): $(TOP_DIR)/src/$(1).mk \
echo; \
echo 'Download failed or wrong checksum of package $(1)!'; \
echo '------------------------------------------------------------'; \
+ifndef MXE_VERBOSE
tail -n 10 '$(LOG_DIR)/$(1)-download' | $(SED) -n '/./p'; \
+else
+ $(SED) -n '/./p' '$(LOG_DIR)/$(1)-download'; \
+endif
echo '------------------------------------------------------------'; \
echo '[log] $(LOG_DIR)/$(1)-download'; \
echo; \
@@ -234,7 +238,11 @@ $(PREFIX)/$(3)/installed/$(1): $(TOP_DIR)/src/$(1).mk \
echo; \
echo 'Failed to build package $(1)!'; \
echo '------------------------------------------------------------'; \
+ifndef MXE_VERBOSE
tail -n 10 '$(LOG_DIR)/$(1)' | $(SED) -n '/./p'; \
+else
+ $(SED) -n '/./p' '$(LOG_DIR)/$(1)'; \
+endif
echo '------------------------------------------------------------'; \
echo '[log] $(LOG_DIR)/$(1)'; \
echo; \