forked from Uninett/nav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (26 loc) · 794 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
.PHONY: dummy clean distclean testclean docclean doc .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
.FORCE: