Added errors for make requirements.
This commit is contained in:
parent
8baa669465
commit
19d90c9add
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user