From ac3ebd48061795a31a9026870c39093fa2505687 Mon Sep 17 00:00:00 2001 From: Bert Gijsbers Date: Tue, 4 Jun 2024 22:32:30 +0200 Subject: [PATCH] Fix test -nt for NetBSD and closes ice-wm/icewm#168. --- doc/Makefile.am | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index 86becca3a..287c1226e 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -13,11 +13,13 @@ adoc_input = $(srcdir)/icewm.adoc $(html_documentation): $(AM_V_GEN)if test -x "`which $(MARKDOWN) 2>/dev/null`"; then \ - if test $(mark_input) -nt $(html_documentation); then \ + if test $(mark_input) -nt $(html_documentation) \ + -o ! -s $(html_documentation); then \ $(MARKDOWN) $(mark_input) >$@; \ fi; \ elif test -x "`which $(ASCIIDOC) 2>/dev/null`"; then \ - if test $(adoc_input) -nt $(html_documentation); then \ + if test $(adoc_input) -nt $(html_documentation) \ + -o ! -s $(html_documentation); then \ $(ASCIIDOC) $(ASCIIDOC_BACKEND) -o $@ $(adoc_input); \ fi; \ else \