mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
install: put 'all' rule first in doc Makefile
This commit is contained in:
18
doc/Makefile
18
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user