-
-
Notifications
You must be signed in to change notification settings - Fork 406
/
Copy pathbindata.mk
32 lines (25 loc) · 1.18 KB
/
bindata.mk
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
STATIC_FILES=$(shell find statics -type f \( ! -iname "bindata.go" ! -iname "bundle.js" \))
GO_BINDATA_GITHUB:=github.com/jteeuwen/go-bindata/go-bindata
EBPF_PROBES:=
ifeq ($(WITH_EBPF), true)
EBPF_PROBES+=ebpf/flow.o ebpf/flow-gre.o
endif
BINDATA_DIRS := \
js/*.js \
rbac/policy.csv \
statics/schemas/* \
statics/workflows/*.yaml
.PHONY: .bindata
.bindata: graffiti/js/bindata.go statics/bindata.go ebpf/statics/bindata.go
.PHONY: .bindata.touch
.bindata.touch:
@touch statics/bindata.go ebpf/statics/bindata.go
ebpf/statics/bindata.go: $(EBPF_PROBES)
go run ${GO_BINDATA_GITHUB} ${GO_BINDATA_FLAGS} -nometadata -o ebpf/statics/bindata.go -pkg=statics -ignore=bindata.go $(EBPF_PROBES)
gofmt -w -s ebpf/statics/bindata.go
statics/bindata.go: statics/ui/js/bundle.js $(STATIC_FILES) .ui
go run ${GO_BINDATA_GITHUB} ${GO_BINDATA_FLAGS} -nometadata -o statics/bindata.go -pkg=statics -ignore=bindata.go $(BINDATA_DIRS) $(UI_DIRS) $(UI_V2_DIRS)
gofmt -w -s statics/bindata.go
graffiti/js/bindata.go: .typescript graffiti/js/*.js
go run ${GO_BINDATA_GITHUB} ${GO_BINDATA_FLAGS} -prefix graffiti/js/ -nometadata -o graffiti/js/bindata.go -pkg=js graffiti/js/*.js
gofmt -w -s graffiti/js/bindata.go