mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
proper error handling in package/Makefile
SVN-Revision: 2264
This commit is contained in:
parent
db0b841518
commit
98cfb58200
@ -443,21 +443,25 @@ $(TARGET_DIR):
|
|||||||
%-prepare: $(STAMP_DIR) $(TARGET_DIR)
|
%-prepare: $(STAMP_DIR) $(TARGET_DIR)
|
||||||
@[ -f $(STAMP_DIR)/.$@ ] || { \
|
@[ -f $(STAMP_DIR)/.$@ ] || { \
|
||||||
$(START_TRACE) "package/$(patsubst %-prepare,%,$@)/prepare: "; \
|
$(START_TRACE) "package/$(patsubst %-prepare,%,$@)/prepare: "; \
|
||||||
$(MAKE) -C $(patsubst %-prepare,%,$@) prepare; \
|
$(MAKE) -C $(patsubst %-prepare,%,$@) prepare && { \
|
||||||
|
touch $(STAMP_DIR)/.$@; \
|
||||||
|
} || { \
|
||||||
$(CMD_TRACE) " done"; \
|
$(CMD_TRACE) " done"; \
|
||||||
$(END_TRACE); \
|
$(END_TRACE); \
|
||||||
|
} \
|
||||||
}
|
}
|
||||||
@touch $(STAMP_DIR)/.$@
|
|
||||||
|
|
||||||
%-compile:
|
%-compile:
|
||||||
@[ -f $(STAMP_DIR)/.$@ ] || { \
|
@[ -f $(STAMP_DIR)/.$@ ] || { \
|
||||||
$(START_TRACE) "package/$(patsubst %-compile,%,$@)/compile: "; \
|
$(START_TRACE) "package/$(patsubst %-compile,%,$@)/compile: "; \
|
||||||
$(MAKE) -C $(patsubst %-compile,%,$@) compile; \
|
$(MAKE) -C $(patsubst %-compile,%,$@) compile && { \
|
||||||
|
touch $(STAMP_DIR)/.$(patsubst %-compile,%,$@)-prepare; \
|
||||||
|
touch $(STAMP_DIR)/.$@; \
|
||||||
|
} || { \
|
||||||
$(CMD_TRACE) " done"; \
|
$(CMD_TRACE) " done"; \
|
||||||
$(END_TRACE); \
|
$(END_TRACE); \
|
||||||
|
} \
|
||||||
}
|
}
|
||||||
@touch $(STAMP_DIR)/.$(patsubst %-compile,%,$@)-prepare
|
|
||||||
@touch $(STAMP_DIR)/.$@
|
|
||||||
|
|
||||||
%-install: %-compile
|
%-install: %-compile
|
||||||
@$(START_TRACE) "package/$(patsubst %-install,%,$@)/install: "
|
@$(START_TRACE) "package/$(patsubst %-install,%,$@)/install: "
|
||||||
|
Loading…
Reference in New Issue
Block a user