Changeset 26499


Ignore:
Timestamp:
2011-04-06T16:48:59+02:00 (7 years ago)
Author:
nbd
Message:

build: log package dump failures to logs to avoid forcing user to write cryptic commands to figure out what's going on

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/scan.mk

    r16101 r26499  
    2828                $$(call progress,Collecting $(SCAN_NAME) info: $(SCAN_DIR)/$(2)) \ 
    2929                echo Source-Makefile: $(SCAN_DIR)/$(2)/Makefile; \ 
    30                 $(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 $$@; }; \ 
     30                $(NO_TRACE_MAKE) --no-print-dir -r DUMP=1 -C $(SCAN_DIR)/$(2) $(SCAN_MAKEOPTS) 2>/dev/null || { \ 
     31                        mkdir -p "$(TOPDIR)/logs/$(SCAN_DIR)/$(2)"; \ 
     32                        $(NO_TRACE_MAKE) --no-print-dir -r DUMP=1 -C $(SCAN_DIR)/$(2) $(SCAN_MAKEOPTS) > $(TOPDIR)/logs/$(SCAN_DIR)/$(2)/dump.txt 2>&1; \ 
     33                        $$(call progress,ERROR: please fix $(SCAN_DIR)/$(2)/Makefile - see logs/$(SCAN_DIR)/$(2)/dump.txt for details\n) \ 
     34                        rm -f $$@; \ 
     35                }; \ 
    3136                echo; \ 
    3237        } > $$@ || true 
Note: See TracChangeset for help on using the changeset viewer.