diff options
author | Tony Theodore <tonyt@logyst.com> | 2015-09-07 12:35:22 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-09-12 03:43:04 (GMT) |
commit | 4d858c468bb9024b46680c4e92fd7a7b8b5e018f (patch) | |
tree | 4e014a480067421ae70d3faf29c6ec80330dd23d /Makefile | |
parent | 5c62f031758b999b0d1859a3fd304d2007f1773f (diff) | |
download | mxe-4d858c468bb9024b46680c4e92fd7a7b8b5e018f.zip mxe-4d858c468bb9024b46680c4e92fd7a7b8b5e018f.tar.gz mxe-4d858c468bb9024b46680c4e92fd7a7b8b5e018f.tar.bz2 |
Makefile: include mxe-conf as an order-only dep of all packages
Order-only deps have the benefit of guaranteed early execution and not requiring full rebuilds. It isn't a real package, so we don't want an entry in index.html.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -49,6 +49,12 @@ PKGS := $(call set_create,\ BUILD := $(shell '$(EXT_DIR)/config.guess') PATH := $(PREFIX)/$(BUILD)/bin:$(PREFIX)/bin:$(PATH) +# All pkgs have (implied) order-only dependencies on MXE_CONF_PKGS. +# These aren't meaningful to the pkg list in index.html so +# use a list in case we want to separate autotools, cmake etc. +MXE_CONF_PKGS := mxe-conf +PKGS += $(MXE_CONF_PKGS) + # define some whitespace variables define newline @@ -363,7 +369,8 @@ $(PREFIX)/$(3)/installed/$(1): $(TOP_DIR)/src/$(1).mk \ $(wildcard $(TOP_DIR)/src/$(1)-test*) \ $(addprefix $(PREFIX)/$(3)/installed/,$(value $(call LOOKUP_PKG_RULE,$(1),DEPS,$(3)))) \ | $(if $(DONT_CHECK_REQUIREMENTS),,check-requirements) \ - $(if $(value $(call LOOKUP_PKG_RULE,$(1),URL,$(3))),download-only-$(1)) + $(if $(value $(call LOOKUP_PKG_RULE,$(1),URL,$(3))),download-only-$(1)) \ + $(addprefix $(PREFIX)/$(3)/installed/,$(if $(call set_is_not_member,$(1),$(MXE_CONF_PKGS)),$(MXE_CONF_PKGS))) @[ -d '$(LOG_DIR)/$(TIMESTAMP)' ] || mkdir -p '$(LOG_DIR)/$(TIMESTAMP)' $(if $(value $(call LOOKUP_PKG_RULE,$(1),BUILD,$(3))), @$(PRINTF_FMT) '[build]' '$(1)' '$(3)', |