Makefile 1.19 KB
Newer Older
Christian Pointner's avatar
Christian Pointner committed
1
##
Christian Pointner's avatar
Christian Pointner committed
2
3
##  tank, Import and Playlist Daemon for Aura project
##  Copyright (C) 2017-2020 Christian Pointner <equinox@helsinki.at>
Christian Pointner's avatar
Christian Pointner committed
4
##
Christian Pointner's avatar
Christian Pointner committed
5
6
7
8
##  This program is free software: you can redistribute it and/or modify
##  it under the terms of the GNU Affero General Public License as
##  published by the Free Software Foundation, either version 3 of the
##  License, or (at your option) any later version.
Christian Pointner's avatar
Christian Pointner committed
9
##
Christian Pointner's avatar
Christian Pointner committed
10
##  This program is distributed in the hope that it will be useful,
Christian Pointner's avatar
Christian Pointner committed
11
12
##  but WITHOUT ANY WARRANTY; without even the implied warranty of
##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Christian Pointner's avatar
Christian Pointner committed
13
##  GNU Affero General Public License for more details.
Christian Pointner's avatar
Christian Pointner committed
14
##
Christian Pointner's avatar
Christian Pointner committed
15
16
##  You should have received a copy of the GNU Affero General Public License
##  along with this program.  If not, see <https://www.gnu.org/licenses/>.
Christian Pointner's avatar
Christian Pointner committed
17
18
19
20
21
22
23
24
25
26
##

GOCMD := go
ifdef GOROOT
GOCMD = $(GOROOT)/bin/go
endif

EXECUTEABLE := tank

all: build
Christian Pointner's avatar
Christian Pointner committed
27
.PHONY: vet format ui build clean distclean
Christian Pointner's avatar
Christian Pointner committed
28
29

vet:
Christian Pointner's avatar
Christian Pointner committed
30
	$(GOCMD) vet ./...
Christian Pointner's avatar
Christian Pointner committed
31
32

format:
Christian Pointner's avatar
Christian Pointner committed
33
	$(GOCMD) fmt ./...
Christian Pointner's avatar
Christian Pointner committed
34

35
ui:
36
	$(GOCMD) generate ./ui
37

Christian Pointner's avatar
Christian Pointner committed
38
build: ui
Christian Pointner's avatar
Christian Pointner committed
39
	$(GOCMD) build -o $(EXECUTEABLE) ./cmd/tank
Christian Pointner's avatar
Christian Pointner committed
40

41
42
43
dev:
	$(GOCMD) build -o $(EXECUTEABLE) -tags=dev ./cmd/tank

Christian Pointner's avatar
Christian Pointner committed
44
45
clean:
	rm -f $(EXECUTEABLE)
Christian Pointner's avatar
Christian Pointner committed
46
47
48

distclean: clean
	rm -f ui/assets_vfsdata.go