projects
/
librecmc
/
librecmc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
caf4747
)
build: log package dump failures to logs to avoid forcing user to write cryptic comma...
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 6 Apr 2011 14:48:59 +0000
(14:48 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 6 Apr 2011 14:48:59 +0000
(14:48 +0000)
SVN-Revision: 26499
include/scan.mk
patch
|
blob
|
history
diff --git
a/include/scan.mk
b/include/scan.mk
index 288a10050bef7f5c0f076da9043ed1313cc470b0..b2b202d12bf7a331519d3972c3d803e5efdd8391 100644
(file)
--- a/
include/scan.mk
+++ b/
include/scan.mk
@@
-27,7
+27,12
@@
define PackageDir
{ \
$$(call progress,Collecting $(SCAN_NAME) info: $(SCAN_DIR)/$(2)) \
echo Source-Makefile: $(SCAN_DIR)/$(2)/Makefile; \
{ \
$$(call progress,Collecting $(SCAN_NAME) info: $(SCAN_DIR)/$(2)) \
echo Source-Makefile: $(SCAN_DIR)/$(2)/Makefile; \
- $(NO_TRACE_MAKE) --no-print-dir -r DUMP=1 -C $(SCAN_DIR)/$(2) $(SCAN_MAKEOPTS) 2>/dev/null || { $$(call progress,ERROR: please fix $(SCAN_DIR)/$(2)/Makefile\n) rm -f $$@; }; \
+ $(NO_TRACE_MAKE) --no-print-dir -r DUMP=1 -C $(SCAN_DIR)/$(2) $(SCAN_MAKEOPTS) 2>/dev/null || { \
+ mkdir -p "$(TOPDIR)/logs/$(SCAN_DIR)/$(2)"; \
+ $(NO_TRACE_MAKE) --no-print-dir -r DUMP=1 -C $(SCAN_DIR)/$(2) $(SCAN_MAKEOPTS) > $(TOPDIR)/logs/$(SCAN_DIR)/$(2)/dump.txt 2>&1; \
+ $$(call progress,ERROR: please fix $(SCAN_DIR)/$(2)/Makefile - see logs/$(SCAN_DIR)/$(2)/dump.txt for details\n) \
+ rm -f $$@; \
+ }; \
echo; \
} > $$@ || true
endef
echo; \
} > $$@ || true
endef