mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 01:00:05 +08:00
14 lines
313 B
Makefile
14 lines
313 B
Makefile
|
HAVE_DOCKER := $(shell which docker 2>/dev/null)
|
||
|
HAVE_PODMAN := $(shell which podman 2>/dev/null)
|
||
|
|
||
|
build:
|
||
|
ifdef HAVE_DOCKER
|
||
|
docker build -t nvim -f Dockerfile .
|
||
|
else
|
||
|
ifdef HAVE_PODMAN
|
||
|
podman build -t nvim -f Dockerfile .
|
||
|
else
|
||
|
$(error "No docker or podman in $(PATH). Check if one was installed.")
|
||
|
endif
|
||
|
endif
|