Skip to content

Commit fcd52f5

Browse files
committed
Conditionalize PKG_EXE on makensis.
1 parent c470018 commit fcd52f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mk/dist.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,13 @@ lic.txt: $(S)LICENSE.txt
4040
@$(call E, crlf: $@)
4141
@$(Q)perl -pe 's@\r\n|\n@\r\n@go' <$< >$@
4242

43+
ifdef CFG_MAKENSIS
4344
$(PKG_EXE): all rustc-stage3 $(PKG_NSI) $(PKG_FILES) lic.txt
4445
@$(call E, makensis: $@)
45-
$(Q)makensis -NOCD -V1 "-XOutFile $@" "-XLicenseData lic.txt" $<
46+
$(Q)$(CFG_MAKENSIS) -NOCD -V1 "-XOutFile $@" \
47+
"-XLicenseData lic.txt" $<
4648
$(Q)rm -f lic.txt
49+
endif
4750

4851
$(PKG_TAR): $(PKG_FILES)
4952
@$(call E, making dist dir)

0 commit comments

Comments
 (0)