mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-30 18:43:42 +02:00
Merge pull request #4983 from guggero/vendor-reproducible
make: clean mobile stubs before building release
This commit is contained in:
10
Makefile
10
Makefile
@ -150,12 +150,14 @@ release-install:
|
|||||||
env CGO_ENABLED=0 $(GOINSTALL) -v -trimpath -ldflags="$(RELEASE_LDFLAGS)" -tags="$(RELEASE_TAGS)" $(PKG)/cmd/lnd
|
env CGO_ENABLED=0 $(GOINSTALL) -v -trimpath -ldflags="$(RELEASE_LDFLAGS)" -tags="$(RELEASE_TAGS)" $(PKG)/cmd/lnd
|
||||||
env CGO_ENABLED=0 $(GOINSTALL) -v -trimpath -ldflags="$(RELEASE_LDFLAGS)" -tags="$(RELEASE_TAGS)" $(PKG)/cmd/lncli
|
env CGO_ENABLED=0 $(GOINSTALL) -v -trimpath -ldflags="$(RELEASE_LDFLAGS)" -tags="$(RELEASE_TAGS)" $(PKG)/cmd/lncli
|
||||||
|
|
||||||
release:
|
# Make sure the generated mobile RPC stubs don't influence our vendor package
|
||||||
|
# by removing them first in the clean-mobile target.
|
||||||
|
release: clean-mobile
|
||||||
@$(call print, "Releasing lnd and lncli binaries.")
|
@$(call print, "Releasing lnd and lncli binaries.")
|
||||||
$(VERSION_CHECK)
|
$(VERSION_CHECK)
|
||||||
./scripts/release.sh build-release "$(VERSION_TAG)" "$(BUILD_SYSTEM)" "$(RELEASE_TAGS)" "$(RELEASE_LDFLAGS)"
|
./scripts/release.sh build-release "$(VERSION_TAG)" "$(BUILD_SYSTEM)" "$(RELEASE_TAGS)" "$(RELEASE_LDFLAGS)"
|
||||||
|
|
||||||
docker-release:
|
docker-release: clean-mobile
|
||||||
@$(call print, "Building release helper docker image.")
|
@$(call print, "Building release helper docker image.")
|
||||||
if [ "$(tag)" = "" ]; then echo "Must specify tag=<commit_or_tag>!"; exit 1; fi
|
if [ "$(tag)" = "" ]; then echo "Must specify tag=<commit_or_tag>!"; exit 1; fi
|
||||||
|
|
||||||
@ -299,6 +301,10 @@ clean:
|
|||||||
$(RM) ./lnd-itest ./lncli-itest
|
$(RM) ./lnd-itest ./lncli-itest
|
||||||
$(RM) -r ./vendor .vendor-new
|
$(RM) -r ./vendor .vendor-new
|
||||||
|
|
||||||
|
clean-mobile:
|
||||||
|
@$(call print, "Cleaning autogenerated mobile RPC stubs.")
|
||||||
|
$(RM) -r mobile/build
|
||||||
|
$(RM) mobile/*_generated.go
|
||||||
|
|
||||||
.PHONY: all \
|
.PHONY: all \
|
||||||
btcd \
|
btcd \
|
||||||
|
Reference in New Issue
Block a user