-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging Patch provided by a telegram user
- Loading branch information
1 parent
88dc701
commit 2f9d1fd
Showing
2 changed files
with
54 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,52 @@ | ||
build: | ||
GOOS=linux GOARCH=amd64 go build -o=pluto.linux.amd64 | ||
GOOS=linux GOARCH=386 go build -o=pluto.linux.i386 | ||
GOOS=windows GOARCH=amd64 go build -o=pluto.amd64.exe | ||
GOOS=windows GOARCH=386 go build -o=pluto.i386.exe | ||
|
||
clean: | ||
rm pluto.linux.i386 | ||
rm pluto.linux.amd64 | ||
rm pluto.i386.exe | ||
rm pluto.amd64.exe | ||
PACKAGE=pluto | ||
VERSION=1.4 | ||
|
||
ARCH_LINUX = $(PACKAGE)-$(VERSION)-linux-amd64 \ | ||
$(PACKAGE)-$(VERSION)-linux-arm64 \ | ||
$(PACKAGE)-$(VERSION)-linux-386 | ||
|
||
ARCH_WIN = $(PACKAGE)-$(VERSION)-windows-amd64.exe \ | ||
$(PACKAGE)-$(VERSION)-windows-386.exe | ||
|
||
TARGET = $(PACKAGE)-$(VERSION)-linux-amd64 | ||
|
||
# TODO: Must write a configure.ac to find target for user end. | ||
# then we can use: | ||
# all: default | ||
# default: $(TARGET) | ||
|
||
all: default | ||
default: $(TARGET) | ||
|
||
dist: dist-linux dist-windows | ||
|
||
dist-windows: $(ARCH_WIN) | ||
dist-linux: $(ARCH_LINUX) | ||
|
||
$(PACKAGE)-$(VERSION)-linux-arm64: | ||
GOOS=linux \ | ||
GOARCH=arm64 \ | ||
go build -o=$@ | ||
|
||
$(PACKAGE)-$(VERSION)-linux-amd64: | ||
GOOS=linux \ | ||
GOARCH=amd64 \ | ||
go build -o=$@ | ||
|
||
$(PACKAGE)-$(VERSION)-linux-386: | ||
GOOS=linux \ | ||
GOARCH=386 \ | ||
go build -o=$@ | ||
|
||
$(PACKAGE)-$(VERSION)-windows-amd64.exe: | ||
GOOS=windows \ | ||
GOARCH=amd64 \ | ||
go build -o=$@.exe | ||
|
||
$(PACKAGE)-$(VERSION)-windows-386.exe: | ||
GOOS=windows \ | ||
GOARCH=386 \ | ||
go build -o=$@.exe | ||
|
||
dist-clean: | ||
rm -f $(ARCH_WIN) $(ARCH_LINUX) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters