File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,24 @@ release-install:
145
145
env CGO_ENABLED=0 $(GOINSTALL ) -v -trimpath -ldflags=" $( RELEASE_LDFLAGS) " -tags=" $( RELEASE_TAGS) " $(PKG ) /cmd/lnd
146
146
env CGO_ENABLED=0 $(GOINSTALL ) -v -trimpath -ldflags=" $( RELEASE_LDFLAGS) " -tags=" $( RELEASE_TAGS) " $(PKG ) /cmd/lncli
147
147
148
+ # ? cross-release-install: Build lnd and lncli release binaries for single/all
149
+ # supported platforms to /tmp (useful for checking cross compilation or priming
150
+ # release build cache).
151
+ cross-release-install :
152
+ @$(call print, "Cross compiling release lnd and lncli.")
153
+ for sys in $( BUILD_SYSTEM) ; do \
154
+ echo " Building lnd and lncli for $$ sys" ; \
155
+ export CGO_ENABLED=0 GOOS=$$(echo $$sys | cut -d- -f1 ) GOARCH=$$(echo $$sys | cut -d- -f2 ) ; \
156
+ if [ " $$ GOARCH" = " armv6" ]; then \
157
+ export GOARCH=arm; GOARM=6; \
158
+ elif [ " $$ GOARCH" = " armv7" ]; then \
159
+ export GOARCH=arm; GOARM=7; \
160
+ fi ; \
161
+ $(GOBUILD ) -trimpath -ldflags=" $( RELEASE_LDFLAGS) " -tags=" $( RELEASE_TAGS) " -o /tmp/lnd-$$ sys $(PKG ) /cmd/lnd; \
162
+ $(GOBUILD ) -trimpath -ldflags=" $( RELEASE_LDFLAGS) " -tags=" $( RELEASE_TAGS) " -o /tmp/lncli-$$ sys $(PKG ) /cmd/lncli; \
163
+ echo ; \
164
+ done
165
+
148
166
# ? release: Build the full set of reproducible release binaries for all supported platforms
149
167
# Make sure the generated mobile RPC stubs don't influence our vendor package
150
168
# by removing them first in the clean-mobile target.
You can’t perform that action at this time.
0 commit comments