Skip to content

Commit

Permalink
Makefile.am: Fix build without pandoc
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
barsnick committed Sep 19, 2024
1 parent 766505b commit d5b9b97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,10 @@ EXTRA_DIST += \
man/tpm2tss_ecc_genkey.3.md \
man/tpm2tss_ecc_getappdata.3.md

if HAVE_PANDOC
CLEANFILES += \
$(dist_man_MANS)
endif

### Bash Completion
bash_completiondir = $(completionsdir)
Expand Down

0 comments on commit d5b9b97

Please sign in to comment.