-
Notifications
You must be signed in to change notification settings - Fork 56
/
Makefile
42 lines (31 loc) · 886 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
prod:
$(MAKE) BUILD=prod frontend
go generate -v
go build -v
dev:
$(MAKE) BUILD=dev frontend
go build -v -tags dev
test:
go test -v
test-int:
cd tests && .venv/bin/pytest -v
frontend:
make -C frontend clean all du
frontend-watch:
make -C frontend watch
build-ct-image:
podman build -t gvalkov/tailon .
README.md:
go build
ed $@ <<< $$'/BEGIN HELP_USAGE/+2,/END HELP_USAGE/-2d\n/BEGIN HELP_USAGE/+1r !./tailon --help 2>&1\n,w'
ed $@ <<< $$'/BEGIN HELP_CONFIG/+2,/END HELP_CONFIG/-2d\n/BEGIN HELP_CONFIG/+1r !./tailon --help-config 2>&1\n,w'
sed -i 's/[ \t]*$$//' $@
tests/.venv:
[ ! -d $@ ] && python3 -m venv $@
$@/bin/pip install -r tests/requirements.txt
tests/requirements.txt: tests/requirements.in
pip-compile $< > $@
frontend_bin.go:
go run frontend_gen.go
.PHONY: dev test frontend frontend-watch build-ct-image README.md frontend_bin.go
.ONESHELL: