Skip to content

Commit 3d31abb

Browse files
committed
build: Make Windows-specific targets available for Windows builds only
1 parent 92990e2 commit 3d31abb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile.am

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ COVERAGE_INFO = $(COV_TOOL_WRAPPER) baseline.info \
7878
dist-hook:
7979
-$(GIT) archive --format=tar HEAD -- src/clientversion.cpp | $(AMTAR) -C $(top_distdir) -xf -
8080

81+
if TARGET_WINDOWS
8182
$(BITCOIN_WIN_INSTALLER): all-recursive
8283
$(MKDIR_P) $(top_builddir)/release
8384
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(BITCOIND_BIN) $(top_builddir)/release
@@ -90,6 +91,9 @@ $(BITCOIN_WIN_INSTALLER): all-recursive
9091
echo error: could not build $@
9192
@echo built $@
9293

94+
deploy: $(BITCOIN_WIN_INSTALLER)
95+
endif
96+
9397
if TARGET_DARWIN
9498
$(OSX_APP)/Contents/PkgInfo:
9599
$(MKDIR_P) $(@D)
@@ -167,10 +171,6 @@ appbundle: $(OSX_APP_BUILT)
167171
deploy: $(OSX_DMG)
168172
endif
169173

170-
if TARGET_WINDOWS
171-
deploy: $(BITCOIN_WIN_INSTALLER)
172-
endif
173-
174174
$(BITCOIN_QT_BIN): FORCE
175175
$(MAKE) -C src qt/$(@F)
176176

0 commit comments

Comments
 (0)