mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-26 06:24:03 +02:00
proper error handling in package/Makefile
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2264 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3f7e469c04
commit
d65c4f7d8d
@ -443,21 +443,25 @@ $(TARGET_DIR):
|
||||
%-prepare: $(STAMP_DIR) $(TARGET_DIR)
|
||||
@[ -f $(STAMP_DIR)/.$@ ] || { \
|
||||
$(START_TRACE) "package/$(patsubst %-prepare,%,$@)/prepare: "; \
|
||||
$(MAKE) -C $(patsubst %-prepare,%,$@) prepare; \
|
||||
$(MAKE) -C $(patsubst %-prepare,%,$@) prepare && { \
|
||||
touch $(STAMP_DIR)/.$@; \
|
||||
} || { \
|
||||
$(CMD_TRACE) " done"; \
|
||||
$(END_TRACE); \
|
||||
} \
|
||||
}
|
||||
@touch $(STAMP_DIR)/.$@
|
||||
|
||||
%-compile:
|
||||
@[ -f $(STAMP_DIR)/.$@ ] || { \
|
||||
$(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"; \
|
||||
$(END_TRACE); \
|
||||
} \
|
||||
}
|
||||
@touch $(STAMP_DIR)/.$(patsubst %-compile,%,$@)-prepare
|
||||
@touch $(STAMP_DIR)/.$@
|
||||
|
||||
%-install: %-compile
|
||||
@$(START_TRACE) "package/$(patsubst %-install,%,$@)/install: "
|
||||
|
Loading…
Reference in New Issue
Block a user