diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-01-02 19:06:54 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-01-02 19:07:45 (GMT) |
commit | 56a8b1c202406568171f2584e48a478c29404823 (patch) | |
tree | b5fc2c88f8f80b057bfd087b8ec52a000d07a681 | |
parent | 59c940ea690bce7096cbffc92cf6b6bbd253b304 (diff) | |
download | mxe-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-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; \ |