-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 1.24 KB
/
Makefile
File metadata and controls
38 lines (29 loc) · 1.24 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
py5_java_src = $(shell find py5-jar/src/ -name "*.java")
py5_jar_file = py5-jar/dist/py5.jar
py5_py_src = $(shell find py5-resources/ -name "*.py*") $(shell find py5-resources/ -name "*.csv") $(shell find py5-docs/Reference/ -name "*.txt")
py5_txt_docs = $(shell find py5-docs/Reference/api_en/ -name "*.txt")
py5_generator = generate-py5.py
py5_doc_generator = generate-py5-docs.py
generator_src = $(shell find generator/ -name "*.py*")
py5_installed = $(py5_build_dir)/.install_py5.nogit
extra_args :=
ifeq ($(skip_black), true)
extra_args += --skip_black
endif
all: install-py5
py5-jar: $(py5_jar_file)
$(py5_jar_file): $(py5_java_src)
ant -f py5-jar/build.xml -Dprocessing_dir=$(shell realpath $(processing_dir))
generate-py5: $(py5_build_dir)
$(py5_build_dir): $(py5_jar_file) $(py5_py_src) $(py5_generator) $(generator_src) $(py5_txt_docs)
python $(py5_generator) $(processing_dir) $(py5_build_dir) $(extra_args)
install-py5: $(py5_installed)
$(py5_installed): $(py5_build_dir)
cd $(py5_build_dir) && hatch build && pip install ./dist/py5*.tar.gz
touch $(py5_installed)
generate-py5-docs:
python $(py5_doc_generator) $(py5_website_dir) py5-docs/Reference/$(py5_api_lang)
.PHONY: clean
clean:
rm -f $(py5_installed)
ant -f py5-jar/build.xml clean