Skip to content

Commit

Permalink
Makefile: minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
daringer committed Dec 14, 2024
1 parent 4c97b18 commit e5a04e8
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@



all: venv
.PHONY: docs
docs: venv
venv/bin/sphinx-build -j auto -b html -D language=en -d build/en/doctrees source dist/en

venv:
python -m venv venv
venv/bin/pip3 install -r requirements.txt

clean:
rm -rf dist build venv

.PHONY: check
check: venv
# ignore-messages is needed due to links being used in directives, which
# are not visible by rstcheck as these directives are ignored (mostly faq)
venv/bin/rstcheck --recursive --ignore-directives tabs,faq,product-table \
--ignore-messages "faq(.*)Hyperlink target(.*)is not referenced" \
source

pkg: venv docs
mv dist/en/_images dist/_images
rm -rf dist/*/_sources dist/*/_images
cp redirects/.htaccess dist


clean:
rm -rf dist build venv

.PHONY: docs check pkg

0 comments on commit e5a04e8

Please sign in to comment.