From 916c1c5bae828924be460bd8e675951646d62a22 Mon Sep 17 00:00:00 2001 From: Julien Blanchard Date: Tue, 20 Aug 2024 17:27:56 +0200 Subject: [PATCH] Makefile can be used with GNU and BSD make --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 169eabf..fc01446 100644 --- a/Makefile +++ b/Makefile @@ -16,8 +16,8 @@ FILES = t README.md LICENSE.txt Makefile jumpapp jumpappify-desktop-entry all: jumpapp.1 jumpapp.1: README.man.md - @hash pandoc 2>/dev/null || { echo "ERROR: can't find pandoc. Have you installed it?" >&2; exit 1; } - pandoc --from=markdown --standalone --output="$@" "$<" + @which pandoc 2>/dev/null || { echo "ERROR: can't find pandoc. Have you installed it?" >&2; exit 1; } + pandoc --from=markdown --standalone --output=$@ README.man.md README.man.md: README.md echo '% JUMPAPP(1) jumpapp | $(VERSION)' >"$@"