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

14 lines
313 B
Makefile
Raw Normal View History

2024-07-08 17:45:42 +08:00
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