From 798f454a93a03f6dafdc7cbd56fc0bdbabb3d6f4 Mon Sep 17 00:00:00 2001 From: Xavier Delaruelle Date: Sun, 14 Feb 2021 12:59:16 +0100 Subject: [PATCH] install: put 'all' rule first in doc Makefile --- doc/Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index 7b7be49e..6f472558 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -35,6 +35,15 @@ ALL_TXT := $(patsubst $(SOURCE_DIR)/%,$(BUILD_DIR)/%,$(patsubst %.rst,%.txt,$(AL ALL_HTML := $(patsubst $(SOURCE_DIR)/%,$(BUILD_DIR)/%,$(patsubst %.rst,%.html,$(ALL_RST))) ALL_MAN := $(BUILD_DIR)/module.1 $(BUILD_DIR)/ml.1 $(BUILD_DIR)/modulefile.4 +all: man txt + +# enable HTML pages build only from git repository +ifeq ($(wildcard ../.git),../.git) +ifneq ($(builddoc),p) +all: html +endif +endif + man: $(ALL_MAN) ifeq ($(compatversion),y) man: $(COMPAT_MAN_DIR)/module.1 $(COMPAT_MAN_DIR)/modulefile.4 @@ -50,15 +59,6 @@ txt: $(BUILD_DIR)/diff_v3_v4.txt $(BUILD_DIR)/MIGRATING.txt \ $(BUILD_DIR)/NEWS.txt $(BUILD_DIR)/CONTRIBUTING.txt endif -all: man txt - -# enable HTML pages build only from git repository -ifeq ($(wildcard ../.git),../.git) -ifneq ($(builddoc),p) -all: html -endif -endif - ../version.inc: $(MAKE) --no-print-directory -C .. version.inc