From 30eb7e4d2fa5c5b43fc85ebdc3313010da77d3ca Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Wed, 23 Oct 2024 11:16:25 +0200 Subject: [PATCH] make+release: move release script, fix make Because the "make release" command collided with the release.sh script, make thought it needed to do something with that file. We fix that problem in two ways: We move the file into the scripts sub folder and also tell make that all our defined goals don't correspond to folders or files. --- Makefile | 10 +++++++++- release.sh => scripts/release.sh | 0 2 files changed, 9 insertions(+), 1 deletion(-) rename release.sh => scripts/release.sh (100%) diff --git a/Makefile b/Makefile index 89334876..df7557aa 100644 --- a/Makefile +++ b/Makefile @@ -163,7 +163,7 @@ release: app-build go-release go-release: @$(call print, "Creating release of lightning-terminal.") - ./release.sh build-release "$(VERSION_TAG)" "$(BUILD_SYSTEM)" "$(LND_RELEASE_TAGS)" "$(RELEASE_LDFLAGS)" + ./scripts/release.sh build-release "$(VERSION_TAG)" "$(BUILD_SYSTEM)" "$(LND_RELEASE_TAGS)" "$(RELEASE_LDFLAGS)" docker-release: app-build @$(call print, "Building release helper docker image.") @@ -279,3 +279,11 @@ clean: clean-itest $(RM) ./litcli-debug $(RM) ./litd-debug $(RM) coverage.txt + +# Prevent make from interpreting any of the defined goals as folders or files to +# include in the build process. +.PHONY: default all yarn-install build install go-build go-build-noui \ + go-install go-install-noui go-install-cli app-build release go-release \ + docker-release docker-tools scratch check unit unit-cover unit-race \ + clean-itest build-itest itest-only itest flake-unit fmt lint mod mod-check \ + list rpc protos protos-check rpc-js-compile clean \ No newline at end of file diff --git a/release.sh b/scripts/release.sh similarity index 100% rename from release.sh rename to scripts/release.sh