blob: 3aa87254ce72901f7668d3485a61a8599c0705d3 (
plain)
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
28
29
30
|
.PHONY: build
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d_%H%M)
all: build
./gus --version
./gus
build: goimports
GO111MODULE=off go build -v -x \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
install:
GO111MODULE=off go install -v -x \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
sudo: build
sudo ./gus
# makes a .deb package
debian:
go-deb --repo go.wit.com/lib/daemons/gus
goimports:
goimports -w *.go
clean:
rm -f go.*
rm -f gus
|