mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 07:57:27 +03:00 
			
		
		
		
	Inline PHONY targets to help avoid omissions (texinfo, info, livehtml, serve were missing)
This commit is contained in:
		
							parent
							
								
									e6e5a0018e
								
							
						
					
					
						commit
						d12c119ec4
					
				|  | @ -15,8 +15,7 @@ ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . | ||||||
| # the i18n builder cannot share the environment and doctrees with the others
 | # the i18n builder cannot share the environment and doctrees with the others
 | ||||||
| I18NSPHINXOPTS  = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . | I18NSPHINXOPTS  = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . | ||||||
| 
 | 
 | ||||||
| .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext | .PHONY: help | ||||||
| 
 |  | ||||||
| help: | help: | ||||||
| 	@echo "Please use \`make <target>' where <target> is one of" | 	@echo "Please use \`make <target>' where <target> is one of" | ||||||
| 	@echo "  html       to make standalone HTML files" | 	@echo "  html       to make standalone HTML files" | ||||||
|  | @ -40,45 +39,50 @@ help: | ||||||
| 	@echo "  changes    to make an overview of all changed/added/deprecated items" | 	@echo "  changes    to make an overview of all changed/added/deprecated items" | ||||||
| 	@echo "  linkcheck  to check all external links for integrity" | 	@echo "  linkcheck  to check all external links for integrity" | ||||||
| 	@echo "  doctest    to run all doctests embedded in the documentation (if enabled)" | 	@echo "  doctest    to run all doctests embedded in the documentation (if enabled)" | ||||||
| 	@echo "  serve      to start a local server for viewing docs" |  | ||||||
| 	@echo "  livehtml   to start a local server for viewing docs and auto-reload on change" |  | ||||||
| 
 | 
 | ||||||
|  | .PHONY: clean | ||||||
| clean: | clean: | ||||||
| 	-rm -rf $(BUILDDIR)/* | 	-rm -rf $(BUILDDIR)/* | ||||||
| 
 | 
 | ||||||
| install-sphinx: | install-sphinx: | ||||||
| 	$(PYTHON) -m pip install --quiet furo olefile sphinx sphinx-copybutton sphinx-inline-tabs sphinx-issues sphinx-removed-in sphinxext-opengraph | 	$(PYTHON) -m pip install --quiet furo olefile sphinx sphinx-copybutton sphinx-inline-tabs sphinx-issues sphinx-removed-in sphinxext-opengraph | ||||||
| 
 | 
 | ||||||
|  | .PHONY: html | ||||||
| html: | html: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b html -W --keep-going $(ALLSPHINXOPTS) $(BUILDDIR)/html | 	$(SPHINXBUILD) -b html -W --keep-going $(ALLSPHINXOPTS) $(BUILDDIR)/html | ||||||
| 	@echo | 	@echo | ||||||
| 	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html." | 	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html." | ||||||
| 
 | 
 | ||||||
|  | .PHONY: dirhtml | ||||||
| dirhtml: | dirhtml: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml | 	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml | ||||||
| 	@echo | 	@echo | ||||||
| 	@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." | 	@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." | ||||||
| 
 | 
 | ||||||
|  | .PHONY: singlehtml | ||||||
| singlehtml: | singlehtml: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml | 	$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml | ||||||
| 	@echo | 	@echo | ||||||
| 	@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." | 	@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." | ||||||
| 
 | 
 | ||||||
|  | .PHONY: pickle | ||||||
| pickle: | pickle: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle | 	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle | ||||||
| 	@echo | 	@echo | ||||||
| 	@echo "Build finished; now you can process the pickle files." | 	@echo "Build finished; now you can process the pickle files." | ||||||
| 
 | 
 | ||||||
|  | .PHONY: json | ||||||
| json: | json: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json | 	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json | ||||||
| 	@echo | 	@echo | ||||||
| 	@echo "Build finished; now you can process the JSON files." | 	@echo "Build finished; now you can process the JSON files." | ||||||
| 
 | 
 | ||||||
|  | .PHONY: htmlhelp | ||||||
| htmlhelp: | htmlhelp: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp | 	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp | ||||||
|  | @ -86,6 +90,7 @@ htmlhelp: | ||||||
| 	@echo "Build finished; now you can run HTML Help Workshop with the" \
 | 	@echo "Build finished; now you can run HTML Help Workshop with the" \
 | ||||||
| 	      ".hhp project file in $(BUILDDIR)/htmlhelp." | 	      ".hhp project file in $(BUILDDIR)/htmlhelp." | ||||||
| 
 | 
 | ||||||
|  | .PHONY:  qthelp | ||||||
| qthelp: | qthelp: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp | 	$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp | ||||||
|  | @ -96,6 +101,7 @@ qthelp: | ||||||
| 	@echo "To view the help file:" | 	@echo "To view the help file:" | ||||||
| 	@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/PillowPILfork.qhc" | 	@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/PillowPILfork.qhc" | ||||||
| 
 | 
 | ||||||
|  | .PHONY: devhelp | ||||||
| devhelp: | devhelp: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp | 	$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp | ||||||
|  | @ -106,12 +112,14 @@ devhelp: | ||||||
| 	@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/PillowPILfork" | 	@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/PillowPILfork" | ||||||
| 	@echo "# devhelp" | 	@echo "# devhelp" | ||||||
| 
 | 
 | ||||||
|  | .PHONY: epub | ||||||
| epub: | epub: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub | 	$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub | ||||||
| 	@echo | 	@echo | ||||||
| 	@echo "Build finished. The epub file is in $(BUILDDIR)/epub." | 	@echo "Build finished. The epub file is in $(BUILDDIR)/epub." | ||||||
| 
 | 
 | ||||||
|  | .PHONY: latex | ||||||
| latex: | latex: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex | 	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex | ||||||
|  | @ -120,6 +128,7 @@ latex: | ||||||
| 	@echo "Run \`make' in that directory to run these through (pdf)latex" \
 | 	@echo "Run \`make' in that directory to run these through (pdf)latex" \
 | ||||||
| 	      "(use \`make latexpdf' here to do that automatically)." | 	      "(use \`make latexpdf' here to do that automatically)." | ||||||
| 
 | 
 | ||||||
|  | .PHONY: latexpdf | ||||||
| latexpdf: | latexpdf: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex | 	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex | ||||||
|  | @ -127,18 +136,21 @@ latexpdf: | ||||||
| 	$(MAKE) -C $(BUILDDIR)/latex all-pdf | 	$(MAKE) -C $(BUILDDIR)/latex all-pdf | ||||||
| 	@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." | 	@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." | ||||||
| 
 | 
 | ||||||
|  | .PHONY: text | ||||||
| text: | text: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text | 	$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text | ||||||
| 	@echo | 	@echo | ||||||
| 	@echo "Build finished. The text files are in $(BUILDDIR)/text." | 	@echo "Build finished. The text files are in $(BUILDDIR)/text." | ||||||
| 
 | 
 | ||||||
|  | .PHONY: man | ||||||
| man: | man: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man | 	$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man | ||||||
| 	@echo | 	@echo | ||||||
| 	@echo "Build finished. The manual pages are in $(BUILDDIR)/man." | 	@echo "Build finished. The manual pages are in $(BUILDDIR)/man." | ||||||
| 
 | 
 | ||||||
|  | .PHONY: texinfo | ||||||
| texinfo: | texinfo: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo | 	$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo | ||||||
|  | @ -147,6 +159,7 @@ texinfo: | ||||||
| 	@echo "Run \`make' in that directory to run these through makeinfo" \
 | 	@echo "Run \`make' in that directory to run these through makeinfo" \
 | ||||||
| 	      "(use \`make info' here to do that automatically)." | 	      "(use \`make info' here to do that automatically)." | ||||||
| 
 | 
 | ||||||
|  | .PHONY: info | ||||||
| info: | info: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo | 	$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo | ||||||
|  | @ -154,18 +167,21 @@ info: | ||||||
| 	make -C $(BUILDDIR)/texinfo info | 	make -C $(BUILDDIR)/texinfo info | ||||||
| 	@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." | 	@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." | ||||||
| 
 | 
 | ||||||
|  | .PHONY: gettext | ||||||
| gettext: | gettext: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale | 	$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale | ||||||
| 	@echo | 	@echo | ||||||
| 	@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." | 	@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." | ||||||
| 
 | 
 | ||||||
|  | .PHONY: changes | ||||||
| changes: | changes: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes | 	$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes | ||||||
| 	@echo | 	@echo | ||||||
| 	@echo "The overview file is in $(BUILDDIR)/changes." | 	@echo "The overview file is in $(BUILDDIR)/changes." | ||||||
| 
 | 
 | ||||||
|  | .PHONY: linkcheck | ||||||
| linkcheck: | linkcheck: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck -j auto | 	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck -j auto | ||||||
|  | @ -173,14 +189,17 @@ linkcheck: | ||||||
| 	@echo "Link check complete; look for any errors in the above output " \
 | 	@echo "Link check complete; look for any errors in the above output " \
 | ||||||
| 	      "or in $(BUILDDIR)/linkcheck/output.txt." | 	      "or in $(BUILDDIR)/linkcheck/output.txt." | ||||||
| 
 | 
 | ||||||
|  | .PHONY: doctest | ||||||
| doctest: | doctest: | ||||||
| 	$(MAKE) install-sphinx | 	$(MAKE) install-sphinx | ||||||
| 	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest | 	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest | ||||||
| 	@echo "Testing of doctests in the sources finished, look at the " \
 | 	@echo "Testing of doctests in the sources finished, look at the " \
 | ||||||
| 	      "results in $(BUILDDIR)/doctest/output.txt." | 	      "results in $(BUILDDIR)/doctest/output.txt." | ||||||
| 
 | 
 | ||||||
|  | .PHONY: livehtml | ||||||
| livehtml: html | livehtml: html | ||||||
| 	livereload $(BUILDDIR)/html -p 33233 | 	livereload $(BUILDDIR)/html -p 33233 | ||||||
| 
 | 
 | ||||||
|  | .PHONY: serve | ||||||
| serve: | serve: | ||||||
| 	cd $(BUILDDIR)/html; $(PYTHON) -m http.server | 	cd $(BUILDDIR)/html; $(PYTHON) -m http.server | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user