diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-10-22 21:54:11 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-10-22 21:54:11 +0000 |
commit | 98cfb582004ccac65f9e42ac4e89d430bd9dd763 (patch) | |
tree | 755b5c225779b3afb8860a8d5618b534c60a0314 /openwrt/package/Makefile | |
parent | db0b841518b16e2f2bdc94c3027f76f4b3dc2bec (diff) | |
download | mtk-20170518-98cfb582004ccac65f9e42ac4e89d430bd9dd763.zip mtk-20170518-98cfb582004ccac65f9e42ac4e89d430bd9dd763.tar.gz mtk-20170518-98cfb582004ccac65f9e42ac4e89d430bd9dd763.tar.bz2 |
proper error handling in package/Makefile
SVN-Revision: 2264
Diffstat (limited to 'openwrt/package/Makefile')
-rw-r--r-- | openwrt/package/Makefile | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/openwrt/package/Makefile b/openwrt/package/Makefile index 9053acb..1bdbbbf 100644 --- a/openwrt/package/Makefile +++ b/openwrt/package/Makefile @@ -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; \ - $(CMD_TRACE) " done"; \ - $(END_TRACE); \ + $(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; \ - $(CMD_TRACE) " done"; \ - $(END_TRACE); \ + $(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: " |