forked from Uninett/nav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (36 loc) · 1.03 KB
/
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
47
48
.PHONY: dummy clean distclean testclean docclean doc cssclean sassbuild sasswatch .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
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
.FORCE: