forked from RHsyseng/console-cr-form
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (36 loc) · 795 Bytes
/
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
# kernel-style V=1 build verbosity
ifeq ("$(origin V)", "command line")
BUILD_VERBOSE = $(V)
endif
ifeq ($(BUILD_VERBOSE),1)
Q =
else
Q = @
endif
#VERSION = $(shell git describe --dirty --tags --always)
#REPO = github.com/RHsyseng/console-cr-form
#export CGO_ENABLED:=0
.PHONY: all
all: build
.PHONY: npm
npm:
#rm -f frontend/package-lock.json
cd frontend; npm install
npm --prefix frontend run build
.PHONY: npm-watch
npm-watch:
cd frontend; npm run watch
.PHONY: dep
dep:
dep ensure -v
.PHONY: go-generate
go-generate: dep
$(Q)go generate ./...
.PHONY: build
build: npm go-generate
CGO_ENABLED=0 go build -v -a -o build/console-cr-form github.com/RHsyseng/console-cr-form/cmd
.PHONY: clean
clean:
rm -rf build \
pkg/web/packrd \
pkg/web/web-packr.go