mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
Merge #20734: build: Make platform-specific targets available for proper platform builds only
3d31abbaaad599443ec5ffee90ddb6989a625277 build: Make Windows-specific targets available for Windows builds only (Hennadii Stepanov) 92990e25b7e5d02651ffa27f2d57c4c2c190668e build: Make macOS-specific targets available for macOS builds only (Hennadii Stepanov) Pull request description: On master (f1dbf92ff0475a01d20170ea422c1d086acbbc57) it is possible to point `make` to macOS and Windows specific targets even the build system is configured to build for Linux platforms: ``` $ make Bitcoin-Core.dmg ... $ make bitcoin-21.99.0-win64-setup ... ``` Such behavior makes no sense, and it is confused. Fixed in this PR. ACKs for top commit: fanquake: ACK 3d31abbaaad599443ec5ffee90ddb6989a625277 - tested that nonsensical targets are no longer available. i.e Tree-SHA512: bbd8450bf98fbccb0b828df2f753ed0dbbd203defa2f58ce21390ee2ea183c95d8ff585d62d52be870dbf0158e2bb0fbd47eda026b80174ee6fd617473f5ac03
This commit is contained in:
parent
e07e289e0a
commit
9c8db95941
13
Makefile.am
13
Makefile.am
@ -74,6 +74,7 @@ COVERAGE_INFO = baseline.info \
|
|||||||
dist-hook:
|
dist-hook:
|
||||||
-$(GIT) archive --format=tar HEAD -- src/clientversion.cpp | $(AMTAR) -C $(top_distdir) -xf -
|
-$(GIT) archive --format=tar HEAD -- src/clientversion.cpp | $(AMTAR) -C $(top_distdir) -xf -
|
||||||
|
|
||||||
|
if TARGET_WINDOWS
|
||||||
$(BITCOIN_WIN_INSTALLER): all-recursive
|
$(BITCOIN_WIN_INSTALLER): all-recursive
|
||||||
$(MKDIR_P) $(top_builddir)/release
|
$(MKDIR_P) $(top_builddir)/release
|
||||||
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(BITCOIND_BIN) $(top_builddir)/release
|
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(BITCOIND_BIN) $(top_builddir)/release
|
||||||
@ -84,6 +85,10 @@ $(BITCOIN_WIN_INSTALLER): all-recursive
|
|||||||
echo error: could not build $@
|
echo error: could not build $@
|
||||||
@echo built $@
|
@echo built $@
|
||||||
|
|
||||||
|
deploy: $(BITCOIN_WIN_INSTALLER)
|
||||||
|
endif
|
||||||
|
|
||||||
|
if TARGET_DARWIN
|
||||||
$(OSX_APP)/Contents/PkgInfo:
|
$(OSX_APP)/Contents/PkgInfo:
|
||||||
$(MKDIR_P) $(@D)
|
$(MKDIR_P) $(@D)
|
||||||
@echo "APPL????" > $@
|
@echo "APPL????" > $@
|
||||||
@ -127,7 +132,7 @@ $(OSX_BACKGROUND_IMAGE): $(OSX_BACKGROUND_IMAGE).png $(OSX_BACKGROUND_IMAGE)@2x.
|
|||||||
tiffutil -cathidpicheck $^ -out $@
|
tiffutil -cathidpicheck $^ -out $@
|
||||||
|
|
||||||
deploydir: $(OSX_DMG)
|
deploydir: $(OSX_DMG)
|
||||||
else
|
else !BUILD_DARWIN
|
||||||
APP_DIST_DIR=$(top_builddir)/dist
|
APP_DIST_DIR=$(top_builddir)/dist
|
||||||
APP_DIST_EXTRAS=$(APP_DIST_DIR)/.background/$(OSX_BACKGROUND_IMAGE) $(APP_DIST_DIR)/.DS_Store $(APP_DIST_DIR)/Applications
|
APP_DIST_EXTRAS=$(APP_DIST_DIR)/.background/$(OSX_BACKGROUND_IMAGE) $(APP_DIST_DIR)/.DS_Store $(APP_DIST_DIR)/Applications
|
||||||
|
|
||||||
@ -154,15 +159,11 @@ $(APP_DIST_DIR)/$(OSX_APP)/Contents/MacOS/Dash-Qt: $(OSX_APP_BUILT) $(OSX_PACKAG
|
|||||||
INSTALLNAMETOOL=$(INSTALLNAMETOOL) OTOOL=$(OTOOL) STRIP=$(STRIP) $(PYTHON) $(OSX_DEPLOY_SCRIPT) $(OSX_APP) -translations-dir=$(QT_TRANSLATION_DIR) -add-qt-tr $(OSX_QT_TRANSLATIONS) -verbose 2
|
INSTALLNAMETOOL=$(INSTALLNAMETOOL) OTOOL=$(OTOOL) STRIP=$(STRIP) $(PYTHON) $(OSX_DEPLOY_SCRIPT) $(OSX_APP) -translations-dir=$(QT_TRANSLATION_DIR) -add-qt-tr $(OSX_QT_TRANSLATIONS) -verbose 2
|
||||||
|
|
||||||
deploydir: $(APP_DIST_EXTRAS)
|
deploydir: $(APP_DIST_EXTRAS)
|
||||||
endif
|
endif !BUILD_DARWIN
|
||||||
|
|
||||||
if TARGET_DARWIN
|
|
||||||
appbundle: $(OSX_APP_BUILT)
|
appbundle: $(OSX_APP_BUILT)
|
||||||
deploy: $(OSX_DMG)
|
deploy: $(OSX_DMG)
|
||||||
endif
|
endif
|
||||||
if TARGET_WINDOWS
|
|
||||||
deploy: $(BITCOIN_WIN_INSTALLER)
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(BITCOIN_QT_BIN): FORCE
|
$(BITCOIN_QT_BIN): FORCE
|
||||||
$(MAKE) -C src qt/$(@F)
|
$(MAKE) -C src qt/$(@F)
|
||||||
|
Loading…
Reference in New Issue
Block a user