1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 23:10:04 +08:00
SpaceVim/docker/Makefile
Maxim 7606e57177
Chore: Add compatibility with podman for build task. (#4064)
Change in Makefile for build with docker or podman via one interface. Also add error if no docker or podman installed.

Co-authored-by: Maxim Albeschenko <admin013@mnalb-n01.localdomain>
2021-02-09 12:41:33 +08:00

14 lines
339 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.nvim-python3 .
else
ifdef HAVE_PODMAN
podman build -t nvim -f Dockerfile.nvim-python3 .
else
$(error "No docker or podman in $(PATH). Check if one was installed.")
endif
endif