aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
blob: 6ee92d1e0c3c11799fca5ed886232dcc095410c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
BIN:= nonsense-time
SERVICE:= nonsense-time.service

.PHONY: all test clean build install info

all: build

build: $(BIN)

install: $(BIN)
	cp $(BIN) /usr/bin

test:
	go test ./...

clean:
	go mod tidy

info:
	@echo "BIN: $(BIN)"
	@echo "SERVICE: $(SERVICE)"

nonsense-time: nonsense-time.go $(wildcard api/*.go) $(wildcard dashboard/*.go) $(wildcard util/*.go) $(wildcard db/*.go) $(wildcard middleware/*.go)
	go build .