From aee5e82b42caf7bdcbf452946620aede05309f15 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Wed, 12 Apr 2023 15:19:06 +0400 Subject: Include user-profiles.md into nix profile --help --- src/nix/local.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nix/local.mk') diff --git a/src/nix/local.mk b/src/nix/local.mk index 0f2f016ec..dce454db5 100644 --- a/src/nix/local.mk +++ b/src/nix/local.mk @@ -32,3 +32,9 @@ src/nix/develop.cc: src/nix/get-env.sh.gen.hh src/nix-channel/nix-channel.cc: src/nix-channel/unpack-channel.nix.gen.hh src/nix/main.cc: doc/manual/generate-manpage.nix.gen.hh doc/manual/utils.nix.gen.hh + +src/nix/profile.cc: src/nix/profile.md src/nix/doc/files/user-profiles.md + +src/nix/doc/files/%.md: doc/manual/src/command-ref/files/%.md + mkdir -p $$(dirname $@) + ( printf 'R""(\n'; cat $^; printf '\n)""' ) > $@ -- cgit v1.2.3 From f8620758aad1e3b61bc2d10a913bfd07c6d21df6 Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Thu, 27 Apr 2023 11:56:52 +0200 Subject: display documentation on manifest files separately it's probably better not to show the manifest file documentation in the command-specific pages, because these are implementation details that are not really practically useful. this means no additional hassle for building the manual, but clutters the table of contents a bit. --- src/nix/local.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nix/local.mk') diff --git a/src/nix/local.mk b/src/nix/local.mk index dce454db5..86d5c4775 100644 --- a/src/nix/local.mk +++ b/src/nix/local.mk @@ -33,7 +33,7 @@ src/nix-channel/nix-channel.cc: src/nix-channel/unpack-channel.nix.gen.hh src/nix/main.cc: doc/manual/generate-manpage.nix.gen.hh doc/manual/utils.nix.gen.hh -src/nix/profile.cc: src/nix/profile.md src/nix/doc/files/user-profiles.md +src/nix/profile.cc: src/nix/profile.md src/nix/doc/files/profiles.md src/nix/doc/files/%.md: doc/manual/src/command-ref/files/%.md mkdir -p $$(dirname $@) -- cgit v1.2.3 From f7c896cfd80b511c30be5452edb0a350a7dd253c Mon Sep 17 00:00:00 2001 From: John Ericson Date: Mon, 15 May 2023 10:38:11 -0400 Subject: Dedup some markdown -> C++ big literal stuff in build system This pattern rule was unwisely hidden in `src/libstore/local.mk`. Now it is properly in `mk/` and we reuse it for the profile docs too. --- src/nix/local.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/nix/local.mk') diff --git a/src/nix/local.mk b/src/nix/local.mk index 86d5c4775..20ea29d10 100644 --- a/src/nix/local.mk +++ b/src/nix/local.mk @@ -33,8 +33,8 @@ src/nix-channel/nix-channel.cc: src/nix-channel/unpack-channel.nix.gen.hh src/nix/main.cc: doc/manual/generate-manpage.nix.gen.hh doc/manual/utils.nix.gen.hh -src/nix/profile.cc: src/nix/profile.md src/nix/doc/files/profiles.md - src/nix/doc/files/%.md: doc/manual/src/command-ref/files/%.md - mkdir -p $$(dirname $@) - ( printf 'R""(\n'; cat $^; printf '\n)""' ) > $@ + @mkdir -p $$(dirname $@) + @cp $< $@ + +src/nix/profile.cc: src/nix/profile.md src/nix/doc/files/profiles.md.gen.hh -- cgit v1.2.3