-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (23 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
all:
$(MAKE) docs
$(MAKE) nodocs
clean:
rm -rf cool-example .copier-answers.yml
setup-env:
echo '{"add_docs":true,"author":"Bryan Hu","email":"[email protected]","is_app":true,"module_name":"cool_example","project_description":"Example description.","project_name":"Cool Example","pypi_name":"cool-example","username":"ThatXliner"}' > .copier-answers.yml
run:
cd cool-example && poetry up && poetry install && poetry update && poetry lock
cd cool-example && poetry install
cd cool-example && poetry lock
docs: clean
$(MAKE) setup-env
copier copy gh:ThatXliner/pyt2 . -a .copier-answers.yml --defaults -d add_docs=true --vcs-ref HEAD
$(MAKE) run
cp cool-example/poetry.lock 'template/{{ pypi_name }}/{% if add_docs %}poetry.lock{% endif %}'
$(MAKE) clean
nodocs: clean
$(MAKE) setup-env
copier copy gh:ThatXliner/pyt2 . -a .copier-answers.yml --defaults -d add_docs=false --vcs-ref HEAD
$(MAKE) run
cp cool-example/poetry.lock 'template/{{ pypi_name }}/{% if not add_docs %}poetry.lock{% endif %}'
$(MAKE) clean