[lxc-devel] [lxcfs/master] man: fix manpage generation

brauner on Github lxc-bot at linuxcontainers.org
Wed Mar 4 17:34:05 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 365 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200304/a48e59f3/attachment.bin>
-------------- next part --------------
From a05906960860675424191e8194afb0b03a2a3984 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Wed, 4 Mar 2020 18:33:16 +0100
Subject: [PATCH] man: fix manpage generation

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 src/Makefile.am | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 6c68632..3cf4a94 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -88,13 +88,14 @@ lxcfs_CFLAGS = $(AM_CFLAGS)
 lxcfs_LDFLAGS = $(AM_LDFLAGS)
 bin_PROGRAMS = lxcfs
 
-EXTRA_DIST = ../man/lxcfs.man.add ../lxcfs.spec
+EXTRA_DIST = $(top_srcdir)/man/lxcfs.man.add $(top_srcdir)/lxcfs.spec
 
 if HAVE_HELP2MAN
-man_MANS = ../man/lxcfs.1
 
-lxcfs.1: lxcfs ../man/lxcfs.man.add
-	$(HELP2MAN) -n "System virtualization filesystem for containers" --no-discard-stderr -s 1 -I ../man/lxcfs.man.add -N ./lxcfs > ../man/lxcfs.1
+dist_man_MANS = $(top_srcdir)/man/lxcfs.1
+
+lxcfs.1: lxcfs $(top_srcdir)/man/lxcfs.man.add
+	$(HELP2MAN) -n "System virtualization filesystem for containers" --no-discard-stderr -s 1 -I $(top_srcdir)/man/lxcfs.man.add -N ./lxcfs > $(top_srcdir)/man/lxcfs.1
 endif
 
 TEST_READ: tests/test-read.c


More information about the lxc-devel mailing list