Update Makefile

This commit is contained in:
KurimuzonAkuma 2024-07-30 12:35:26 +03:00
parent b3deade428
commit 2ff50423b8

View File

@ -20,14 +20,22 @@ clean-build:
clean-api: clean-api:
$(RM) pyrogram/errors/exceptions pyrogram/raw/all.py pyrogram/raw/base pyrogram/raw/functions pyrogram/raw/types $(RM) pyrogram/errors/exceptions pyrogram/raw/all.py pyrogram/raw/base pyrogram/raw/functions pyrogram/raw/types
clean-docs:
$(RM) docs/build docs/source/api/bound-methods docs/source/api/methods docs/source/api/types docs/source/telegram
clean: clean:
make clean-build make clean-build
make clean-api make clean-api
make clean-docs
api: api:
cd compiler/api && ../../$(PYTHON) compiler.py cd compiler/api && ../../$(PYTHON) compiler.py
cd compiler/errors && ../../$(PYTHON) compiler.py cd compiler/errors && ../../$(PYTHON) compiler.py
docs:
cd compiler/docs && ../../$(PYTHON) compiler.py
$(VENV)/bin/sphinx-build -b dirhtml "docs/source" "docs/build/html" -j auto
build: build:
make clean make clean
$(PYTHON) setup.py sdist $(PYTHON) setup.py sdist