-
Notifications
You must be signed in to change notification settings - Fork 82
/
Makefile
39 lines (33 loc) · 966 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
36
37
38
39
.PHONY: ipynb clean docs
# META := $(wildcard **/.meta.yml)
META := $(shell find -regex ".*/.meta.y[a]?ml")
IPYNB := $(META:%/.meta.yml=%.ipynb)
IPYNB := $(IPYNB:%/.meta.yaml=%.ipynb)
export PATH_DATASETS=$(PWD)/.datasets
init:
@echo $(PATH_DATASETS)
mkdir -p $(PATH_DATASETS)
ipynb: init ${IPYNB}
# @echo $<
%.ipynb: %/.meta.y*ml
@echo $<
python .actions/assistant.py convert-ipynb $(shell dirname $<)
python .actions/assistant.py bash-render $(shell dirname $<)
bash .actions/_ipynb-render.sh
docs: clean
pip install --quiet -r _requirements/docs.txt
python -m sphinx -b html -W --keep-going _docs/source _docs/build
clean:
rm -rf ./.datasets
# clean all temp runs
rm -rf ./_docs/build
rm -rf ./_docs/source/notebooks
rm -rf ./_docs/source/api
rm -f ./dirs-*.txt
rm -f ./*-folders.txt
rm -f ./*/**/*.ipynb
rm -rf ./*/**/.ipynb_checkpoints
rm -rf ./*/**/venv
rm -rf ./*/**/logs
rm -rf ./*/**/lightning_logs
rm -f ./*/**/requirements.txt