Skip to content

Commit c345381

Browse files
committed
Makefile.am: Fix build without pandoc
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>
1 parent 766505b commit c345381

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,10 @@ EXTRA_DIST += \
217217
man/tpm2tss_ecc_genkey.3.md \
218218
man/tpm2tss_ecc_getappdata.3.md
219219

220+
if HAVE_PANDOC
220221
CLEANFILES += \
221222
$(dist_man_MANS)
223+
endif
222224

223225
### Bash Completion
224226
bash_completiondir = $(completionsdir)

0 commit comments

Comments
 (0)