-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (34 loc) · 862 Bytes
/
Makefile
File metadata and controls
43 lines (34 loc) · 862 Bytes
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
PUBLIC_FOLDER = ./public
runserver:
@cd $(PUBLIC_FOLDER) && python -m http.server
.PHONY=clean
clean:
@rm -f .klasses.json
@rm -rf $(PUBLIC_FOLDER)/*
@mkdir -p $(PUBLIC_FOLDER)/static
@echo "Cleaning done."
.PHONY=collect_static
collect_static:
@cp -r static $(PUBLIC_FOLDER)/
@echo "Collecting static done."
.PHONY=index_generator_for_version
generate_index_for_version:
@./src/generate_index.py
.PHONY=build_for_version
build_for_version:
@./src/compile_static.py
build_local:
make clean
make collect_static
@IS_LOCAL=1 tox
# build_local requires installing one of the django versions locally
# you'll have to manually navigate to the version you're testing
build_local_dev:
@make clean
@make collect_static
@IS_LOCAL=1 make generate_index_for_version
@IS_LOCAL=1 make build_for_version
build:
@make clean
@make collect_static
@tox