Skip to content

Makefile.am: Fix build without pandoc#285

Open
barsnick wants to merge 1 commit into
tpm2-software:masterfrom
barsnick:fix-build-without-pandoc
Open

Makefile.am: Fix build without pandoc#285
barsnick wants to merge 1 commit into
tpm2-software:masterfrom
barsnick:fix-build-without-pandoc

Conversation

@barsnick

Copy link
Copy Markdown

When building from a tarball, pre-created man pages are preset. Yet make clean clobbers them, leaving their target directory intact. Therefore, the next configure call will try to build man pages even if pandoc isn't available.

Fix this by cleaning the man pages only if they can be recreated by the presence of pandoc.

Fixes #284

barsnick added a commit to chargebyte/meta-chargebyte-distro that referenced this pull request Sep 19, 2024
This fixes failed attempts to build the man pages even tough pandoc is not
present.

Fixes tpm2-software/tpm2-tss-engine#284, with
patch from tpm2-software/tpm2-tss-engine#285.

Signed-off-by: Moritz Barsnick <moritz.barsnick@chargebyte.com>

@AndreasFuchsTPM AndreasFuchsTPM left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a Signed-of-by tag

@barsnick

Copy link
Copy Markdown
Author

Please add a Signed-of-by tag

I have no idea why the DCO check fails to see it. It's been there all along.

@barsnick

Copy link
Copy Markdown
Author

I have no idea why the DCO check fails to see it.

Ah, I got it. It needs to be identical to the author.

When building from a tarball, pre-created man pages are preset. Yet `make
clean` clobbers them, leaving their target directory intact. Therefore, the
next configure call will try to build man pages even if pandoc isn't
available.

Fix this by cleaning the man pages only if they can be recreated by the
presence of pandoc.

Fixes tpm2-software#284

Signed-off-by: Moritz Barsnick <moritz.barsnick@chargebyte.com>
@barsnick barsnick force-pushed the fix-build-without-pandoc branch from d5b9b97 to c345381 Compare October 11, 2024 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tarball: building without pandoc fails after make clean; configure

2 participants