Skip to content

Commit

Permalink
error out if sed, tar are not the GNU versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
hillu committed Nov 21, 2024
1 parent 0ade08b commit 4a2a2f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ $(if $(filter 4.%,$(MAKE_VERSION)),,\
$(error GNU make 4.0 or above is required.))

SED := $(firstword $(shell which gsed sed))
$(if $(findstring GNU sed,$(shell $(SED) --version)),,\
$(error GNU sed is required.))
TAR := $(firstword $(shell which gtar tar))
$(if $(findstring GNU tar,$(shell $(TAR) --version)),,\
$(error GNU tar is required.))

export GOPATH=$(CURDIR)/_gopath
export GOCACHE=$(CURDIR)/_gopath/cache
Expand Down

0 comments on commit 4a2a2f4

Please sign in to comment.