Skip to content

Commit

Permalink
Merge pull request #4983 from guggero/vendor-reproducible
Browse files Browse the repository at this point in the history
make: clean mobile stubs before building release
  • Loading branch information
cfromknecht authored Feb 7, 2021
2 parents ce01cdd + 3ddb92d commit a5aeca8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/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.")
$(VERSION_CHECK)
./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.")
if [ "$(tag)" = "" ]; then echo "Must specify tag=<commit_or_tag>!"; exit 1; fi

Expand Down Expand Up @@ -299,6 +301,10 @@ clean:
$(RM) ./lnd-itest ./lncli-itest
$(RM) -r ./vendor .vendor-new

clean-mobile:
@$(call print, "Cleaning autogenerated mobile RPC stubs.")
$(RM) -r mobile/build
$(RM) mobile/*_generated.go

.PHONY: all \
btcd \
Expand Down

0 comments on commit a5aeca8

Please sign in to comment.