-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (19 loc) · 822 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
APPNAME = geoclue-tz
OUTDIR = pkg
# Allow user to override cross compilation scope
OSARCH ?= dragonfly/amd64 freebsd/386 freebsd/amd64 freebsd/arm linux/386 linux/amd64 linux/arm netbsd/386 netbsd/amd64 netbsd/arm openbsd/386 openbsd/amd64
DIRS ?= dragonfly_amd64 freebsd_386 freebsd_amd64 freebsd_arm linux_386 linux_amd64 linux_arm netbsd_386 netbsd_amd64 netbsd_arm openbsd_386 openbsd_amd64
all:
go build .
compile:
gox -osarch="$(OSARCH)" -output "$(OUTDIR)/$(APPNAME)-{{.OS}}_{{.Arch}}/$(APPNAME)"
@for dir in $(DIRS) ; do \
(cp README.md $(OUTDIR)/$(APPNAME)-$$dir/README.md) ;\
(cp LICENSE $(OUTDIR)/$(APPNAME)-$$dir/LICENSE) ;\
(cd $(OUTDIR) && zip -q $(APPNAME)-$$dir.zip -r $(APPNAME)-$$dir) ;\
echo "make $(OUTDIR)/$(APPNAME)-$$dir.zip" ;\
done
install:
go install .
uninstall:
go clean -i