forked from distantmagic/paddler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (40 loc) · 1.13 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.DEFAULT_GOAL := paddler-bin-linux-x64
CSS_SOURCES := \
$(wildcard */*.css) \
$(wildcard */*/*.css) \
$(wildcard */*/*/*.css)
GO_SOURCES := \
$(wildcard *.go) \
$(wildcard */*.go)
# -----------------------------------------------------------------------------
# Real targets
# -----------------------------------------------------------------------------
godepgraph.png: $(GO_SOURCES)
godepgraph \
-p github.com/aws,github.com/hashicorp,github.com/smira,github.com/urfave \
-s \
-novendor \
github.com/distantmagic/paddler | dot -Kfdp -Tpng -o godepgraph.png
paddler-bin-linux-x64: $(CSS_SOURCES) $(GO_SOURCES)
$(MAKE) -C management build
go build -o paddler-bin-linux-x64
# -----------------------------------------------------------------------------
# Phony targets
# -----------------------------------------------------------------------------
.PHONY: clean
clean:
$(MAKE) -C management clean
rm -f log.db
rm -f paddler-bin-linux-x64
rm -rf snapshots
rm -f stable.db
.PHONY: deps
deps: godepgraph.png
open godepgraph.png
.PHONY: fmt
fmt:
go fmt ./...
tofu fmt -recursive infra
.PHONY: lint
lint:
golangci-lint run