From 26a63463346a73eec38062984a8fec75761238b7 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Wed, 26 Jun 2024 14:20:35 +0300 Subject: [PATCH] fix(build): Do not distribute main man page, requires Rust tooling Requiring us to download Rust dependencies and build the whole Rust CLI just to generate the source dist tarball is a waste. Distributing the man page in the distribution package makes sense when generating it requires tooling the user may not have, but in this case it *will* get rebuild when they generate the CLI anyway. --- Makefile.am | 1 + build-aux/que_rust_boilerplate.am | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 7ea15a56b..9004d430e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -59,6 +59,7 @@ BUILT_LUA_SOURCES = core/features.lua core/pathsetup.lua core/version.lua bin_PROGRAMS = sile bin_SCRIPTS = sile-lua +nodist_man_MANS = dist_man_MANS = sile-lua.1 sile_SOURCES = src/bin/sile.rs src/lib.rs src/cli.rs EXTRA_sile_SOURCES = diff --git a/build-aux/que_rust_boilerplate.am b/build-aux/que_rust_boilerplate.am index 2f7b2dd48..93514b945 100644 --- a/build-aux/que_rust_boilerplate.am +++ b/build-aux/que_rust_boilerplate.am @@ -2,7 +2,7 @@ export VERSION_FROM_AUTOTOOLS = v$(VERSION) @PACKAGE_VAR@_SOURCES += Cargo.toml build-aux/build.rs EXTRA_@PACKAGE_VAR@_SOURCES += Cargo.lock .version -dist_man_MANS += @PACKAGE_NAME@.1 +nodist_man_MANS += @PACKAGE_NAME@.1 CLEANFILES += $(bin_PROGRAMS) $(BUILT_SOURCES) $(dist_man_MANS)