doc: fix doc build when using `make -C doc` as in the main Makefile
authorpaugier <pierre.augier@univ-grenoble-alpes.fr>
Mon, 27 Jan 2025 15:13:42 +0100
changeset 52708 07ac8528eed8
parent 52707 3d86baf182a5
child 52709 77061208eafe
doc: fix doc build when using `make -C doc` as in the main Makefile
doc/Makefile
--- a/doc/Makefile	Wed Jan 29 23:10:12 2025 +0100
+++ b/doc/Makefile	Mon Jan 27 15:13:42 2025 +0100
@@ -29,6 +29,8 @@
 
 .PHONY: all man html install clean knownrefs
 
+all: man html
+
 # Generate a list of hg commands and extensions.
 commandlist.txt: $(GENDOC)
 	${GENDOCCMD} commandlist > $@.tmp
@@ -135,7 +137,7 @@
 # - help topics: topic-foo (html), hgfoo (man)
 # - extensions: ext-foo (html), hgext-foo (man)
 #
-# Man pages for commands are in section 1 (user commands), topics and 
+# Man pages for commands are in section 1 (user commands), topics and
 # extensions are in section 7 (miscellanea)
 #
 # NOTE: topics and extension are temporarily disabled for man pages because
@@ -158,9 +160,6 @@
 # Also add the HTML index page
 HTML+=$(HTMLOUT)/index.html
 
-
-all: man html
-
 man: $(MAN)
 
 html: $(HTML)