-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (42 loc) · 1.59 KB
/
Copy pathMakefile
File metadata and controls
60 lines (42 loc) · 1.59 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
.PHONY: clean testclean distclean coverageclean cacheclean nuke setup-tailwind setup-tailwind-standalone tailwind-config tailwind-build-config tailwind docclean upgrade-tailwind tailwind-watch check-test-names sync
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
setup-tailwind-standalone: upgrade-tailwind tailwind-build-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
sync:
ifndef VIRTUAL_ENV
$(error Run this command inside a virtual environment)
endif
pip3 install -r requirements.txt -e ".[dev]"
check-test-names:
python3 checks/check_test_names.py --base main