-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathMakefile
More file actions
69 lines (51 loc) · 1.56 KB
/
Copy pathMakefile
File metadata and controls
69 lines (51 loc) · 1.56 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
.PHONY: dummy clean distclean testclean docclean doc cssclean sassbuild sasswatch setup-playwright local-setup local-up local-down .FORCE
dummy:
@echo "'make' is no longer used for deployment. See 'doc/intro/install.rst'"
clean:
-find . -name __pycache__ -print0 | xargs -0 rm -rf
-find . -name "*.pyc" -print0 | xargs -0 rm -rf
-find . -name "*.egg-info" -print0 | xargs -0 rm -rf
-find . -name ".*.sw?" -print0 | xargs -0 rm -rf
distclean:
-rm -rf build
-rm -rf dist
testclean: clean
-rm core
-rm *.stats
-rm python/nav/web/static/js/package-lock.json
-rm -rf .tox
docclean:
-rm -rf doc/_build
doc: doc/reference/alerttypes.rst
sphinx-build doc/ build/sphinx/html/
docwatch:
@while inotifywait -e modify -e move -e create -e delete -r --exclude \# doc/ NOTES.rst; \
do \
sphinx-build doc/ build/sphinx/html/ ;\
done \
doc/reference/alerttypes.rst: .FORCE
python3 doc/exts/alerttypes.py > $@
.env: .FORCE
echo "# This file was generated by 'make .env'" > .env
echo "UID=$(shell id -u)" >> .env
echo "GID=$(shell id -g)" >> .env
cssclean:
-rm -rf python/nav/web/static/css
sassbuild: cssclean
@if [ -f package-lock.json ]; then \
(npm ci && npm run build:sass); \
else \
(npm install && npm run build:sass); \
fi
sasswatch:
-npm run watch:sass
PLAYWRIGHT_BROWSERS ?= chromium
setup-playwright:
uv run playwright install --with-deps $(PLAYWRIGHT_BROWSERS)
local-setup:
tools/local-dev/setup.sh
local-up:
docker compose -f tools/local-dev/docker-compose.yml up -d
local-down:
docker compose -f tools/local-dev/docker-compose.yml down
.FORCE: