mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 23:02:27 +00:00
Add support for installing man-pages
This commit is contained in:
parent
5311b2b250
commit
4271927c5b
12
lib.mk
12
lib.mk
@ -8,6 +8,7 @@ default: all
|
|||||||
# Initialise some variables.
|
# Initialise some variables.
|
||||||
bin_SCRIPTS :=
|
bin_SCRIPTS :=
|
||||||
noinst_SCRIPTS :=
|
noinst_SCRIPTS :=
|
||||||
|
man-pages :=
|
||||||
OS = $(shell uname -s)
|
OS = $(shell uname -s)
|
||||||
|
|
||||||
|
|
||||||
@ -19,6 +20,7 @@ libexecdir ?= $(prefix)/libexec
|
|||||||
datadir ?= $(prefix)/share
|
datadir ?= $(prefix)/share
|
||||||
localstatedir ?= $(prefix)/var
|
localstatedir ?= $(prefix)/var
|
||||||
sysconfdir ?= $(prefix)/etc
|
sysconfdir ?= $(prefix)/etc
|
||||||
|
mandir ?= $(prefix)/share/man
|
||||||
|
|
||||||
|
|
||||||
# Pass -fPIC if we're building dynamic libraries.
|
# Pass -fPIC if we're building dynamic libraries.
|
||||||
@ -78,9 +80,14 @@ $(foreach script, $(bin_SCRIPTS), $(eval programs_list += $(script)))
|
|||||||
$(foreach script, $(noinst_SCRIPTS), $(eval programs_list += $(script)))
|
$(foreach script, $(noinst_SCRIPTS), $(eval programs_list += $(script)))
|
||||||
$(foreach template, $(template_files), $(eval $(call instantiate-template,$(template))))
|
$(foreach template, $(template_files), $(eval $(call instantiate-template,$(template))))
|
||||||
$(foreach test, $(INSTALL_TESTS), $(eval $(call run-install-test,$(test))))
|
$(foreach test, $(INSTALL_TESTS), $(eval $(call run-install-test,$(test))))
|
||||||
|
$(foreach file, $(man-pages), $(eval $(call install-data-in, $(file), $(mandir)/man$(patsubst .%,%,$(suffix $(file))))))
|
||||||
|
|
||||||
|
|
||||||
all: $(programs_list) $(libs_list) $(jars_list)
|
.PHONY: all man help
|
||||||
|
|
||||||
|
all: $(programs_list) $(libs_list) $(jars_list) $(man-pages)
|
||||||
|
|
||||||
|
man: $(man-pages)
|
||||||
|
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@ -93,6 +100,9 @@ help:
|
|||||||
ifdef PACKAGE_NAME
|
ifdef PACKAGE_NAME
|
||||||
@echo " dist: Generate a source distribution"
|
@echo " dist: Generate a source distribution"
|
||||||
endif
|
endif
|
||||||
|
ifdef man-pages
|
||||||
|
@echo " man: Generate manual pages"
|
||||||
|
endif
|
||||||
ifdef programs_list
|
ifdef programs_list
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "The following programs can be built:"
|
@echo "The following programs can be built:"
|
||||||
|
Loading…
Reference in New Issue
Block a user