From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from vmicros1.altlinux.org (vmicros1.altlinux.org [194.107.17.57]) by sourceware.org (Postfix) with ESMTP id 62AB6394741E for ; Thu, 29 Apr 2021 16:36:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 62AB6394741E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=altlinux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=ldv@altlinux.org Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 93AB372C8B0; Thu, 29 Apr 2021 19:36:25 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 6D93E7CF715; Thu, 29 Apr 2021 19:36:25 +0300 (MSK) Date: Thu, 29 Apr 2021 19:36:25 +0300 From: "Dmitry V. Levin" To: Mark Wielaard Cc: debugedit@sourceware.org Subject: Re: [PATCH] debugedit: Add manual using help2man Message-ID: <20210429163625.GC24650@altlinux.org> References: <20210429162722.21085-1-mark@klomp.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210429162722.21085-1-mark@klomp.org> X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: debugedit@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: debugedit development mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2021 16:36:27 -0000 On Thu, Apr 29, 2021 at 06:27:22PM +0200, Mark Wielaard wrote: > This generates a debugedit.1 man page using help2man based on the > debugedit --help output. The generated file is included in the dist > so help2man isn't normally needed to build debugedit. [...] > diff --git a/Makefile.am b/Makefile.am > index bd28eba..5042785 100644 > --- a/Makefile.am > +++ b/Makefile.am > @@ -38,6 +38,15 @@ sepdebugcrcfix_SOURCES = tools/sepdebugcrcfix.c > sepdebugcrcfix_CFLAGS = @LIBELF_CFLAGS@ $(AM_CFLAGS) > sepdebugcrcfix_LDADD = @LIBELF_LIBS@ > > +# Manual pages are generated for dist > +dist_man_MANS = debugedit.1 > + > +debugedit.1: tools/debugedit.c $(top_srcdir)/configure.ac > + $(MAKE) $(AM_MAKEFLAGS) debugedit$(EXEEXT) > + $(HELP2MAN) -N --output=$@ \ > + --name='debug source path manipulation tool' \ > + ./debugedit$(EXEEXT) The usual way of generating debugedit.1 would be to make it depend on debugedit$(EXEEXT) instead. Is this written to avoid any attempts to regenerate debugedit.1 at build time? -- ldv