Added errors for make requirements.

This commit is contained in:
James Patrick 2020-03-09 14:41:18 -04:00
parent 8baa669465
commit 19d90c9add
2 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/zsh
# -*- zsh -*-
local_hook="$HOME"/.git_template.local/hooks/post-merge
@ -6,5 +6,4 @@ local_hook="$HOME"/.git_template.local/hooks/post-merge
.git/hooks/ctags >/dev/null 2>&1 &
make update
(($+commands[gmake])) && gmake update || make update

View File

@ -4,6 +4,13 @@ ifndef _SHELL
endif
SHELL := $(_SHELL)
ifeq ($(shell $(MAKE) -v | grep GNU),)
$(error I need gnumake not bsdmake)
endif
REQUIRED_V := 3.82
ifneq ($(REQUIRED_V),$(firstword $(sort $(MAKE_VERSION) $(REQUIRED_V))))
$(error For .ONESHELL to work I need at least version $(REQUIRED_V))
endif
.ONESHELL:
# Helper scripts for setting up and taking down links.