Skip to content

Commit b12dfbb

Browse files
committed
Simplify some logic in dist.mk
1 parent 7628806 commit b12dfbb

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

mk/dist.mk

+5-6
Original file line numberDiff line numberDiff line change
@@ -314,14 +314,13 @@ ifdef CFG_WINDOWSY_$(CFG_BUILD)
314314
MAYBE_MINGW_TARBALLS=$(foreach host,$(CFG_HOST),dist/$(MINGW_PKG_NAME)-$(host).tar.gz)
315315
endif
316316

317-
ifneq ($(CFG_DISABLE_DOCS),)
318-
dist-tar-bins: $(foreach host,$(CFG_HOST),dist/$(PKG_NAME)-$(host).tar.gz) $(MAYBE_MINGW_TARBALLS)
319-
else
320-
dist-tar-bins: $(foreach host,$(CFG_HOST),dist/$(PKG_NAME)-$(host).tar.gz) \
321-
$(foreach host,$(CFG_HOST),dist/$(DOC_PKG_NAME)-$(host).tar.gz) \
322-
$(MAYBE_MINGW_TARBALLS)
317+
ifeq ($(CFG_DISABLE_DOCS),)
318+
MAYBE_DOC_TARBALLS=$(foreach host,$(CFG_HOST),dist/$(DOC_PKG_NAME)-$(host).tar.gz)
323319
endif
324320

321+
dist-tar-bins: $(foreach host,$(CFG_HOST),dist/$(PKG_NAME)-$(host).tar.gz) \
322+
$(MAYBE_DOC_TARBALLS) $(MAYBE_MINGW_TARBALLS)
323+
325324
# Just try to run the compiler for the build host
326325
distcheck-tar-bins: dist-tar-bins
327326
@$(call E, checking binary tarball)

0 commit comments

Comments
 (0)