Skip to content

Commit

Permalink
🐛 Fixed makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatXliner committed Jan 5, 2025
1 parent 5203571 commit bcb6e9b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
all:
$(MAKE) docs
$(MAKE) nodocs
pre-clean:
rm -rf 'template/{{ pypi_name }}/{% if add_docs %}poetry.lock{% endif %}' 'template/{{ pypi_name }}/{% if not add_docs %}poetry.lock{% endif %}'
clean:
rm -rf cool-example .copier-answers.yml
rm -rf 'template/{{ pypi_name }}/{% if add_docs %}poetry.lock{% endif %}' 'template/{{ pypi_name }}/{% if not add_docs %}poetry.lock{% endif %}'
setup-env:
echo '{"add_docs":true,"author":"Bryan Hu","email":"bryan.hu.2020@gmail.com","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 install && poetry update --lock
docs: clean
docs: pre-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
nodocs: pre-clean
$(MAKE) setup-env
copier copy gh:ThatXliner/pyt2 . -a .copier-answers.yml --defaults -d add_docs=false --vcs-ref HEAD
$(MAKE) run
Expand Down

0 comments on commit bcb6e9b

Please sign in to comment.