gnumake: build offline html documentation (#471258)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
autoreconfHook,
|
||||
guileSupport ? false,
|
||||
guile,
|
||||
texinfo,
|
||||
# avoid guile depend on bootstrap to prevent dependency cycles
|
||||
inBootstrap ? false,
|
||||
pkg-config,
|
||||
@@ -42,7 +43,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
];
|
||||
]
|
||||
++ lib.optionals (!inBootstrap) [ texinfo ];
|
||||
|
||||
buildInputs = lib.optionals guileEnabled [ guile ];
|
||||
|
||||
configureFlags = lib.optional guileEnabled "--with-guile";
|
||||
@@ -51,7 +54,18 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"out"
|
||||
"man"
|
||||
"info"
|
||||
];
|
||||
]
|
||||
++ lib.optionals (!inBootstrap) [ "doc" ];
|
||||
|
||||
postBuild = lib.optionalString (!inBootstrap) ''
|
||||
makeinfo --html --no-split doc/make.texi
|
||||
'';
|
||||
|
||||
postInstall = lib.optionalString (!inBootstrap) ''
|
||||
mkdir -p $doc/share/doc/$pname-$version
|
||||
cp ./make.html $doc/share/doc/$pname-$version/index.html
|
||||
'';
|
||||
|
||||
separateDebugInfo = true;
|
||||
|
||||
passthru.tests = {
|
||||
|
||||
Reference in New Issue
Block a user