File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,17 @@ precompile:
28
28
29
29
# Make static-linked binaries and tarballs
30
30
release : $(SRC )
31
- rm -r $(DIST_DIR )
31
+ rm -fr $(DIST_DIR )
32
32
@for os in $(RELEASE_OS ) ; do \
33
33
for arch in $( RELEASE_ARCH) ; do \
34
- echo " Making binary for ... os=$$ os, arch=$$ arch" ; \
35
34
if [ $$ os = windows ]; then \
36
- GOOS=$$ os GOARCH=$$ arch go build -tags netgo -installsuffix netgo -ldflags " $( RELEASE_LDFLAGS) " -o $(DIST_DIR ) /$(NAME ) -$(VERSION ) -$$ os-$$ arch.exe; \
35
+ exe=$(DIST_DIR ) /$(NAME ) -$(VERSION ) -$$ os-$$ arch.exe; \
36
+ echo " Creating $$ exe ... (os=$$ os, arch=$$ arch)" ; \
37
+ GOOS=$$ os GOARCH=$$ arch go build -tags netgo -installsuffix netgo -ldflags " $( RELEASE_LDFLAGS) " -o $$ exe; \
37
38
else \
38
- GOOS=$$ os GOARCH=$$ arch go build -tags netgo -installsuffix netgo -ldflags " $( RELEASE_LDFLAGS) " -o $(DIST_DIR ) /$(NAME ) -$(VERSION ) -$$ os-$$ arch; \
39
+ exe=$(DIST_DIR ) /$(NAME ) -$(VERSION ) -$$ os-$$ arch; \
40
+ echo " Creating $$ exe ... (os=$$ os, arch=$$ arch)" ; \
41
+ GOOS=$$ os GOARCH=$$ arch go build -tags netgo -installsuffix netgo -ldflags " $( RELEASE_LDFLAGS) " -o $$ exe; \
39
42
strip $(DIST_DIR ) /$(NAME ) -$(VERSION ) -$$ os-$$ arch 2> /dev/null; \
40
43
true ; \
41
44
fi ; \
You can’t perform that action at this time.
0 commit comments