Remove dead code in doc’s local.mk
This commit is contained in:
parent
cd6e9eb024
commit
441be5d59a
2 changed files with 3 additions and 9 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -12,9 +12,10 @@ perl/Makefile.config
|
|||
/libtool
|
||||
|
||||
# /doc/manual/
|
||||
/doc/manual/**/*.1
|
||||
/doc/manual/*.1
|
||||
/doc/manual/*.5
|
||||
/doc/manual/*.8
|
||||
/doc/manual/generated/*
|
||||
/doc/manual/nix.json
|
||||
/doc/manual/conf-file.json
|
||||
/doc/manual/builtins.json
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
ifeq ($(doc_generate),yes)
|
||||
|
||||
ALL_MD_FILES := $(call rwildcard, $(d)/src, *.md)
|
||||
GENERATED_MD_FILES := $(call rwildcard, $(d)/src/command-ref/new-cli, *.md)
|
||||
MANUAL_SRCS := $(filter-out $(GENERATED_MD_FILES), $(ALL_MD_FILES))
|
||||
|
||||
# Generate man pages.
|
||||
man-pages := $(foreach n, \
|
||||
nix-env.1 nix-build.1 nix-shell.1 nix-store.1 nix-instantiate.1 \
|
||||
|
@ -81,13 +77,10 @@ install: $(mandir)/man1/nix3-manpages
|
|||
man: doc/manual/generated/man1/nix3-manpages
|
||||
all: doc/manual/generated/man1/nix3-manpages
|
||||
|
||||
$(mandir)/man1/nix3-manpages: doc/manual/generated/man1/nix3-build.1
|
||||
$(mandir)/man1/nix3-manpages: doc/manual/generated/man1/nix3-manpages
|
||||
@mkdir -p $$(dirname $@)
|
||||
$(trace-install) install -m 0644 $$(dirname $<)/* $$(dirname $@)
|
||||
|
||||
# Technically this rule generates all the `nix3-*` manpages, but since we don’t
|
||||
# know their list statically and they are all generated at once anyways, we can
|
||||
# just be dirty and only track one
|
||||
doc/manual/generated/man1/nix3-manpages: $(d)/src/command-ref/new-cli
|
||||
@mkdir -p $$(dirname $@)
|
||||
$(trace-gen) for i in doc/manual/src/command-ref/new-cli/*.md; do \
|
||||
|
|
Loading…
Reference in a new issue