mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 06:42:28 +00:00
Restore manual pages
Commitd536c57e87
inadvertedly broke build and installation of all non-autogenerated manual pages (in particular, all the ones documenting the stable CLI), by moving the definition of the man-pages variable in doc/manual/local.mk after its usage in mk/lib.mk. Move including the former earlier so that the correct order is restored. (cherry picked from commit8f3253c6f4
)
This commit is contained in:
parent
86dfeebb3d
commit
c5a8b9050c
25
Makefile
25
Makefile
@ -47,6 +47,17 @@ makefiles += \
|
|||||||
tests/functional/plugins/local.mk
|
tests/functional/plugins/local.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Some makefiles require access to built programs and must be included late.
|
||||||
|
makefiles-late =
|
||||||
|
|
||||||
|
ifeq ($(ENABLE_DOC_GEN), yes)
|
||||||
|
makefiles-late += doc/manual/local.mk
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(ENABLE_INTERNAL_API_DOCS), yes)
|
||||||
|
makefiles-late += doc/internal-api/local.mk
|
||||||
|
endif
|
||||||
|
|
||||||
# Miscellaneous global Flags
|
# Miscellaneous global Flags
|
||||||
|
|
||||||
OPTIMIZE = 1
|
OPTIMIZE = 1
|
||||||
@ -95,24 +106,16 @@ installcheck:
|
|||||||
@exit 1
|
@exit 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Documentation or else fallback stub rules.
|
# Documentation fallback stub rules.
|
||||||
#
|
|
||||||
# The documentation makefiles be included after `mk/lib.mk` so rules
|
|
||||||
# refer to variables defined by `mk/lib.mk`. Rules are not "lazy" like
|
|
||||||
# variables, unfortunately.
|
|
||||||
|
|
||||||
ifeq ($(ENABLE_DOC_GEN), yes)
|
ifneq ($(ENABLE_DOC_GEN), yes)
|
||||||
$(eval $(call include-sub-makefile, doc/manual/local.mk))
|
|
||||||
else
|
|
||||||
.PHONY: manual-html manpages
|
.PHONY: manual-html manpages
|
||||||
manual-html manpages:
|
manual-html manpages:
|
||||||
@echo "Generated docs are disabled. Configure without '--disable-doc-gen', or avoid calling 'make manpages' and 'make manual-html'."
|
@echo "Generated docs are disabled. Configure without '--disable-doc-gen', or avoid calling 'make manpages' and 'make manual-html'."
|
||||||
@exit 1
|
@exit 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ENABLE_INTERNAL_API_DOCS), yes)
|
ifneq ($(ENABLE_INTERNAL_API_DOCS), yes)
|
||||||
$(eval $(call include-sub-makefile, doc/internal-api/local.mk))
|
|
||||||
else
|
|
||||||
.PHONY: internal-api-html
|
.PHONY: internal-api-html
|
||||||
internal-api-html:
|
internal-api-html:
|
||||||
@echo "Internal API docs are disabled. Configure with '--enable-internal-api-docs', or avoid calling 'make internal-api-html'."
|
@echo "Internal API docs are disabled. Configure with '--enable-internal-api-docs', or avoid calling 'make internal-api-html'."
|
||||||
|
@ -97,6 +97,10 @@ $(foreach test-group, $(install-tests-groups), \
|
|||||||
$(eval $(call run-test,$(test),$(install_test_init))) \
|
$(eval $(call run-test,$(test),$(install_test_init))) \
|
||||||
$(eval $(test-group).test-group: $(test).test)))
|
$(eval $(test-group).test-group: $(test).test)))
|
||||||
|
|
||||||
|
# Include makefiles requiring built programs.
|
||||||
|
$(foreach mf, $(makefiles-late), $(eval $(call include-sub-makefile,$(mf))))
|
||||||
|
|
||||||
|
|
||||||
$(foreach file, $(man-pages), $(eval $(call install-data-in, $(file), $(mandir)/man$(patsubst .%,%,$(suffix $(file))))))
|
$(foreach file, $(man-pages), $(eval $(call install-data-in, $(file), $(mandir)/man$(patsubst .%,%,$(suffix $(file))))))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user