]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
Makefile, README: Fix make all
authorAlejandro Colomar <alx.manpages@gmail.com>
Sun, 19 Jun 2022 22:32:49 +0000 (00:32 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Sun, 19 Jun 2022 22:32:51 +0000 (00:32 +0200)
`make all` should not install and even less uninstall.  That's
unintuitive, and might break stuff that we don't want to break.

Instead, make it build all useful things that we can build, which
right now is only the HTML pages, but in the future might include
PDF pages.

Reported-by: Ingo Schwarze <schwarze@usta.de>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Makefile
README

index cb1466370f0a631a501f71d84dc2553d0ab98edf..4f5bbe3a5f11944aed2dd15fe023e29b4b1aa196 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -181,9 +181,7 @@ MAN_SECTIONS := 0 1 2 3 4 5 6 7 8
 
 
 .PHONY: all
-all:
-       $(MAKE) uninstall
-       $(MAKE) install
+all: build-html
 
 %/.:
        $(info INSTALL  $(@D)/)
diff --git a/README b/README
index 484151773b3fd7343b5fbd02e66dc2f63677b068..5e0dafd57ba38e90b8ed3f46e95bb2c4f9ffa8e0 100644 (file)
--- a/README
+++ b/README
@@ -30,9 +30,6 @@ To install only a specific man section (mandir) such as man3, use
 "make install-man3".  Similar syntax can be used to uninstall a
 specific man section, such as man7: "make uninstall-man7".
 
-"make" or "make all" will perform "make uninstall" followed by "make
-install".
-
 Consider using multiple threads (at least 2) when installing
 these man pages, as the Makefile is optimized for multiple threads:
 "make -j install".