Makefile: fix minio installation
@@ -11,7 +11,7 @@ PYIGNORE ?= E128,E241,E402,E501,E722,W503,W504
.PHONY: all check flake8 pycheck unittest clean mantle mantle-check install entry entry-check minio
-all: mantle entry
+all: mantle minio entry
src:=$(shell find src -maxdepth 1 -type f -executable -print)
pysources=$(shell find src -type f -name '*.py') $(shell for x in $(src); do if head -1 $$x | grep -q python; then echo $$x; fi; done)
@@ -67,8 +67,7 @@ entry-check:
cd entrypoint && $(MAKE) test
minio:
- git submodule update --init minio
- cd minio && $(MAKE)
+ test -e minio/minio || { git submodule update --init minio; cd minio && $(MAKE); }
install:
install -d $(DESTDIR)$(PREFIX)/lib/coreos-assembler
@@ -84,5 +83,5 @@ install:
ln -sf coreos-assembler $(DESTDIR)$(PREFIX)/bin/cosa
install -d $(DESTDIR)$(PREFIX)/lib/coreos-assembler/tests/kola
cd mantle && $(MAKE) install DESTDIR=$(DESTDIR)
- $(MAKE) minio && install -d $(DESTDIR)$(PREFIX)/bin minio
+ install -v -D -t $(DESTDIR)$(PREFIX)/bin minio/minio
cd entrypoint && $(MAKE) install DESTDIR=$(DESTDIR)
