1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:40:05 +08:00
SpaceVim/docker/Makefile

14 lines
313 B
Makefile
Raw Normal View History

HAVE_DOCKER := $(shell which docker 2>/dev/null)
HAVE_PODMAN := $(shell which podman 2>/dev/null)
build:
ifdef HAVE_DOCKER
2022-05-23 21:32:03 +08:00
docker build -t nvim -f Dockerfile .
else
ifdef HAVE_PODMAN
2022-05-23 21:32:03 +08:00
podman build -t nvim -f Dockerfile .
else
$(error "No docker or podman in $(PATH). Check if one was installed.")
endif
endif