forked from PyYoshi/slack-dump
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 686 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 686 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
26
27
VERSION := $(shell git describe --tags)
install-tools:
go get -u -v github.com/golang/dep/cmd/dep
go get -u -v github.com/mitchellh/gox
install-deps:
dep ensure
update-deps:
dep ensure -update
gox: clean
gox -verbose \
-os="linux darwin windows" \
-arch="amd64 386 arm64" \
-osarch="!darwin/arm64" \
-output="dist/{{.OS}}-{{.Arch}}/{{.Dir}}" . && \
cd dist && \
find * -type d -exec cp ../LICENSE {} \; && \
find * -type d -exec cp ../README.md {} \; && \
find * -type d -not -name "*windows*" -exec tar -zcf slack-dump-${VERSION}-{}.tar.gz {} \; && \
find * -type d -name "*windows*" -exec zip -r slack-dump-${VERSION}-{}.zip {} \; && \
cd ..
clean:
rm -rf ./dist