mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:50:06 +08:00
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>
This commit is contained in:
parent
8bd0d20a54
commit
7606e57177
@ -1,2 +1,13 @@
|
|||||||
|
HAVE_DOCKER := $(shell which docker 2>/dev/null)
|
||||||
|
HAVE_PODMAN := $(shell which podman 2>/dev/null)
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
ifdef HAVE_DOCKER
|
||||||
docker build -t nvim -f Dockerfile.nvim-python3 .
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user