forked from lthn/blockchain
Clean CPack packages only on non-Windows systems
Added a conditional to the package target in the Makefile to remove the _CPack_Packages directory only when not running on Windows. This prevents potential issues with file removal on Windows environments.
This commit is contained in:
parent
44029220a5
commit
49573e94b6
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
|
@ -96,7 +96,9 @@ build-deps: conan-profile-detect
|
||||||
package:
|
package:
|
||||||
@echo "Packaging: $(BUILD_TYPE) testnet=$(TESTNET)"
|
@echo "Packaging: $(BUILD_TYPE) testnet=$(TESTNET)"
|
||||||
(cd $(BUILD_FOLDER) && cpack)
|
(cd $(BUILD_FOLDER) && cpack)
|
||||||
|
ifneq ($(OS),Windows_NT)
|
||||||
@rm -rf $(CURDIR)/build/packages/_CPack_Packages
|
@rm -rf $(CURDIR)/build/packages/_CPack_Packages
|
||||||
|
endif
|
||||||
|
|
||||||
configure: build-deps
|
configure: build-deps
|
||||||
@echo "Running Configure: $(BUILD_TYPE) testnet=$(TESTNET)"
|
@echo "Running Configure: $(BUILD_TYPE) testnet=$(TESTNET)"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue