deps: check if pandoc and awk are installed

- Checks if pandoc is installed.
- Checks if awk is installed.

Co-Authored-by: iGor milhit <igor@milhit.ch>
iGor milhit 2022-11-02 19:21:32 +01:00
parent 8ea1b50cbc
commit 56879deef8
Signed by: igor
GPG Key ID: 692D97C3D0228A99
1 changed files with 14 additions and 0 deletions

View File

@ -6,6 +6,10 @@
.DEFAULT_GOAL:=help .DEFAULT_GOAL:=help
SHELL:=/bin/bash SHELL:=/bin/bash
pandoc=$(shell command -v pandoc)
pandoc_version=$(shell pandoc --version | sed -e 's/.* // ; 1q')
awk=$(shell command -v awk)
.PHONY: help deps .PHONY: help deps
help: ## Display this help help: ## Display this help
@ -13,3 +17,13 @@ help: ## Display this help
deps: ## Check dependencies deps: ## Check dependencies
$(info Checking and getting dependencies) $(info Checking and getting dependencies)
ifeq ($(strip ($pandoc)),)
@echo "pandoc is required"
else
@echo "pandoc" $(pandoc_version) "is installed"
endif
ifeq ($(strip ($awk)),)
@echo "awk is required"
else
@echo "awk is installed"
endif