@@ -30,7 +30,8 @@ LINT = $(LINT_BIN) run -v --build-tags itest
30
30
31
31
PKG := github.com/lightninglabs/lightning-node-connect
32
32
MOBILE_PKG := $(PKG ) /mobile
33
- MOBILE_BUILD_DIR :=${GOPATH}/src/$(PKG ) /build
33
+ MKFILE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST ) ) ) )
34
+ MOBILE_BUILD_DIR := $(MKFILE_DIR ) /build
34
35
IOS_BUILD_DIR := $(MOBILE_BUILD_DIR ) /ios
35
36
IOS_BUILD := $(IOS_BUILD_DIR ) /Lncmobile.xcframework
36
37
ANDROID_BUILD_DIR := $(MOBILE_BUILD_DIR ) /android
@@ -76,13 +77,18 @@ wasm:
76
77
cd cmd/wasm-client; CGO_ENABLED=0 GOOS=js GOARCH=wasm go build -trimpath -ldflags=" $( LDFLAGS) " -tags=" $( RPC_TAGS) " -v -o wasm-client.wasm .
77
78
$(CP ) cmd/wasm-client/wasm-client.wasm example/wasm-client.wasm
78
79
80
+ clean :
81
+ @$(call print, "Cleaning up.")
82
+ $(RM ) -r $(MOBILE_BUILD_DIR )
83
+ $(RM ) -r ./reproducible-builds/
84
+
79
85
apple :
80
- @$(call print, "Building iOS and macOS cxframework ($(IOS_BUILD ) ) ." )
86
+ @$(call print, "Building iOS and macOS xcframework ($(IOS_BUILD ) ) ." )
81
87
mkdir -p $(IOS_BUILD_DIR )
82
88
cd mobile; $(GOMOBILE_BIN ) bind -target=ios,iossimulator,macos -tags=" mobile $( DEV_TAGS) $( RPC_TAGS) " $(LDFLAGS_MOBILE ) -v -o $(IOS_BUILD ) $(MOBILE_PKG )
83
89
84
90
ios :
85
- @$(call print, "Building iOS cxframework ($(IOS_BUILD ) ) ." )
91
+ @$(call print, "Building iOS xcframework ($(IOS_BUILD ) ) ." )
86
92
mkdir -p $(IOS_BUILD_DIR )
87
93
cd mobile; $(GOMOBILE_BIN ) bind -target=ios,iossimulator -tags=" mobile $( DEV_TAGS) $( RPC_TAGS) " $(LDFLAGS_MOBILE ) -v -o $(IOS_BUILD ) $(MOBILE_PKG )
88
94
# modify library files for import without C++ modules
92
98
sed -i.bak -E " s|$( IOS_STRING1) |$( IOS_STRING2) |g" $(IOS_FILE4 )
93
99
94
100
macos :
95
- @$(call print, "Building macOS cxframework ($(IOS_BUILD ) ) ." )
101
+ @$(call print, "Building macOS xcframework ($(IOS_BUILD ) ) ." )
96
102
mkdir -p $(IOS_BUILD_DIR )
97
103
cd mobile; $(GOMOBILE_BIN ) bind -target=macos -tags=" mobile $( DEV_TAGS) $( RPC_TAGS) " $(LDFLAGS_MOBILE ) -v -o $(IOS_BUILD ) $(MOBILE_PKG )
98
104
@@ -120,6 +126,10 @@ repro-wasm:
120
126
# Remove the repro-wasm-image
121
127
docker image rm repro-wasm-image
122
128
129
+ release : clean mobile repro-wasm
130
+ @$(call print, "Building release binaries for $(tag ) .")
131
+ ./scripts/release.sh $(tag )
132
+
123
133
# =======
124
134
# TESTING
125
135
# =======
0 commit comments