-
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (19 loc) · 670 Bytes
/
Makefile
File metadata and controls
29 lines (19 loc) · 670 Bytes
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
LDFLAGS += -X 'github.com/NHAS/wag/internal/config.Version=$(shell git describe --tags)'
LDFLAGS_RELEASE = $(LDFLAGS) -s -w
ID=$(shell id -u)
GID=$(shell id -g)
goonly:
go build -ldflags="$(LDFLAGS)"
debug: .build_ui
go build -ldflags="$(LDFLAGS)"
release: .build_ui
go build -ldflags="$(LDFLAGS_RELEASE)"
dev: debug
sudo docker compose -f docker-compose.dev.yml up
dev-adminui:
cd adminui/frontend; DEV_API_URL=http://127.0.0.1:4433 npm run dev
docker:
sudo docker run -u "$(ID):$(GID)" --rm -t -v `pwd`:/wag wag_builder
.build_ui:
cd adminui/frontend; npm install; npm run build
cd internal/mfaportal/resources/frontend; npm install; npm run build