man/Makefile bugfix: err if !PANDOCOK

This commit is contained in:
Renzo Davoli 2024-10-15 14:47:11 +02:00
parent 5d73f49a17
commit a5b7c0a164
1 changed files with 2 additions and 1 deletions

View File

@ -6,9 +6,10 @@ PANDOCMINVER=3.1.7
ifdef PANDOCOK ifdef PANDOCOK
PANDOCVER := $(shell ${PANDOC} -v | head -1 | cut -d ' ' -f 2) PANDOCVER := $(shell ${PANDOC} -v | head -1 | cut -d ' ' -f 2)
PANDOCVEROK := $(shell printf '%s\n' ${PANDOCMINVER} ${PANDOCVER} | sort -C -V; echo $$?) PANDOCVEROK := $(shell printf '%s\n' ${PANDOCMINVER} ${PANDOCVER} | sort -C -V; echo $$?)
none:
endif endif
none:
% : %.md % : %.md
ifdef PANDOCOK ifdef PANDOCOK
ifeq (${PANDOCVEROK}, 1) ifeq (${PANDOCVEROK}, 1)