Skip to content

Commit

Permalink
added Makefile check
Browse files Browse the repository at this point in the history
  • Loading branch information
brtnfld committed Jan 14, 2025
1 parent 0e9917d commit 60472ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ SOURCEDIR = .
BUILDDIR = ./docs/html
CURRENT_DIR = $(shell pwd)

check_python:
@python3 -c 'import sys; assert sys.version_info >= (3, 9), "Python 3.9+ is required"'

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Expand All @@ -18,6 +21,7 @@ help:
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(MAKE) check_python
git submodule init
git submodule update --init --force --remote
if [ ! -d $(BUILDDIR) ]; then mkdir -p $(BUILDDIR); fi
Expand Down

0 comments on commit 60472ac

Please sign in to comment.