forked from Uninett/Argus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (36 loc) · 1.35 KB
/
Makefile
File metadata and controls
52 lines (36 loc) · 1.35 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
.PHONY: clean testclean distclean coverageclean cacheclean nuke setup-tailwind tailwind-config tailwind-build-config tailwind docclean upgrade-tailwind tailwind-watch check-test-names
TAILWINDDIR=src/argus/htmx/tailwindtheme
STATICDIR=src/argus/htmx/static
PYTHONPATH=./src
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
cacheclean:
-find . -name ".ruff_cache" -print0 | xargs -0 rm -rf
distclean:
-rm -rf ./dist
-rm -rf ./build
docclean:
-rm -rf ./docs/_build
coverageclean:
-rm .coverage
-rm .coverage.*
-rm coverage.xml
-rm -rf htmlcov
testclean: coverageclean clean
-rm -rf .tox
nuke: clean docclean distclean testclean cacheclean
setup-tailwind: upgrade-tailwind tailwind-config tailwind
tailwind-config:
PYTHONPATH=$(PYTHONPATH) python3 manage.py tailwind_config
tailwind-build-config:
PYTHONPATH=$(PYTHONPATH) python3 src/argus/htmx/tailwindtheme/generate_css_config.py
tailwind:
$(TAILWINDDIR)/tailwindcss -i $(TAILWINDDIR)/styles.css -o $(STATICDIR)/styles.css
tailwind-watch:
$(TAILWINDDIR)/tailwindcss -i $(TAILWINDDIR)/styles.css -o $(STATICDIR)/styles.css --watch
upgrade-tailwind:
PYTHONPATH=$(PYTHONPATH) python3 src/argus/htmx/tailwindtheme/get_tailwind.py
check-test-names:
python3 checks/check_test_names.py --base main