-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 841 Bytes
/
Makefile
File metadata and controls
25 lines (19 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Copyright (C) 2017-2024 David Capello
#
# This file is released under the terms of the MIT license.
# Read LICENSE.txt for more information.
all: sendfiles
SENDFILES_SRC = sendfiles.go receivefiles.go main.go sha1.go ip.go
sendfiles: $(SENDFILES_SRC)
go build -o $@ $^
clean:
-rm -f sendfiles.exe sendfiles windows/sendfiles.exe macos/sendfiles linux/sendfiles
-rmdir windows macos linux
cross:
env GOOS=windows GOARCH=amd64 go build -v -o windows/sendfiles.exe $(SENDFILES_SRC)
env GOOS=darwin GOARCH=amd64 go build -v -o macos/sendfiles $(SENDFILES_SRC)
env GOOS=linux GOARCH=amd64 go build -v -o linux/sendfiles $(SENDFILES_SRC)
package:
cd windows && zip ../sendfiles-windows.zip sendfiles.exe && cd ..
cd macos && zip ../sendfiles-macosx.zip sendfiles && cd ..
cd linux && zip ../sendfiles-linux.zip sendfiles && cd ..