Makefile 1013 Bytes
Newer Older
fagrenoble's avatar
fagrenoble committed
1 2 3 4 5
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line.
SPHINXOPTS    =
fagrenoble's avatar
fagrenoble committed
6 7
SPHINXBUILD   = sphinx-build
SPHINXPROJ    = Djangotutorials
fagrenoble's avatar
fagrenoble committed
8 9 10
SOURCEDIR     = .
BUILDDIR      = _build

fagrenoble's avatar
fagrenoble committed
11 12
THIS_MAKEFILE := $(lastword $(MAKEFILE_LIST))

fagrenoble's avatar
fagrenoble committed
13 14 15
# Put it first so that "make" without argument is like "make help".
help:
	@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
fagrenoble's avatar
fagrenoble committed
16 17 18 19 20 21 22
	@echo " "
	@echo "Targets:"
	@echo " "
	@echo "- make check_all"
	@echo "- make req"
	@echo "- make update"
	@echo " "
fagrenoble's avatar
fagrenoble committed
23 24 25 26 27 28

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
fagrenoble's avatar
fagrenoble committed
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
	@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)


check_all:
	pre-commit run --all-files

req:
	pipenv --venv
	pipenv graph
	pipenv check
	pipenv lock -r > requirements.txt;
	cat requirements.txt
	git diff requirements.txt

update:
	pipenv update
	@$(MAKE) -f $(THIS_MAKEFILE) req