mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 05:40:05 +08:00
7606e57177
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>
14 lines
339 B
Makefile
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
|