Skip to content

Commit 264211a

Browse files
committed
---
yaml --- r: 126743 b: refs/heads/snap-stage3 c: e34e86d h: refs/heads/master i: 126741: 7912a0c 126739: cb97f10 126735: eb5bddc v: v3
1 parent 1c084b1 commit 264211a

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 7be8f0af0393dcdb077c2f6b1653836fd3fba235
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 04914fddfb772eed2fe83b7638bd04ca23eacc0a
4+
refs/heads/snap-stage3: e34e86d151341076556635b9bc233338d3d9898e
55
refs/heads/try: 502e4c045236682e9728539dc0d2b3d0b237f55c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/mk/dist.mk

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ define DEF_OSX_PKG
156156
$$(eval $$(call DEF_PREPARE,osx-$(1)))
157157

158158
dist-prepare-osx-$(1): PREPARE_HOST=$(1)
159-
dist-prepare-osx-$(1): PREPARE_TARGETS=$(1)
159+
dist-prepare-osx-$(1): PREPARE_TARGETS=$(2)
160160
dist-prepare-osx-$(1): PREPARE_DEST_DIR=tmp/dist/pkgroot-$(1)
161161
dist-prepare-osx-$(1): PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
162162
dist-prepare-osx-$(1): PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
@@ -187,7 +187,11 @@ tmp/dist/pkgres-$(1)/%: $(S)src/etc/pkg/%
187187

188188
endef
189189

190-
$(foreach host,$(CFG_HOST),$(eval $(call DEF_OSX_PKG,$(host))))
190+
ifneq ($(CFG_ENABLE_DIST_HOST_ONLY),)
191+
$(foreach host,$(CFG_HOST),$(eval $(call DEF_OSX_PKG,$(host),$(host))))
192+
else
193+
$(foreach host,$(CFG_HOST),$(eval $(call DEF_OSX_PKG,$(host),$(TARGET))))
194+
endif
191195

192196
dist-osx: $(foreach host,$(CFG_HOST),dist/$(PKG_NAME)-$(host).pkg)
193197

@@ -210,7 +214,7 @@ define DEF_INSTALLER
210214
$$(eval $$(call DEF_PREPARE,dir-$(1)))
211215

212216
dist-install-dir-$(1): PREPARE_HOST=$(1)
213-
dist-install-dir-$(1): PREPARE_TARGETS=$(1)
217+
dist-install-dir-$(1): PREPARE_TARGETS=$(2)
214218
dist-install-dir-$(1): PREPARE_DEST_DIR=tmp/dist/$$(PKG_NAME)-$(1)
215219
dist-install-dir-$(1): PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
216220
dist-install-dir-$(1): PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
@@ -235,8 +239,13 @@ dist/$$(PKG_NAME)-$(1).tar.gz: dist-install-dir-$(1)
235239

236240
endef
237241

242+
ifneq ($(CFG_ENABLE_DIST_HOST_ONLY),)
238243
$(foreach host,$(CFG_HOST),\
239-
$(eval $(call DEF_INSTALLER,$(host))))
244+
$(eval $(call DEF_INSTALLER,$(host),$(host))))
245+
else
246+
$(foreach host,$(CFG_HOST),\
247+
$(eval $(call DEF_INSTALLER,$(host),$(CFG_TARGET))))
248+
endif
240249

241250
dist-install-dirs: $(foreach host,$(CFG_HOST),dist-install-dir-$(host))
242251

0 commit comments

Comments
 (0)