mirror of
https://github.com/rancher/os.git
synced 2025-08-01 06:59:05 +00:00
42 lines
837 B
Makefile
42 lines
837 B
Makefile
include common.make
|
|
|
|
|
|
compile: bin/rancheros
|
|
|
|
|
|
all: clean ros-build-base build-all
|
|
|
|
|
|
ros-build-base:
|
|
docker build -t ros-build-base -f Dockerfile.build-base .
|
|
|
|
|
|
ros-build-image:
|
|
docker build -t ros-build -f Dockerfile.build .
|
|
|
|
|
|
bin/rancheros: ros-build-image
|
|
./scripts/docker-run.sh make -f Makefile.docker $@
|
|
|
|
mkdir -p bin
|
|
docker cp ros-build:/go/src/github.com/rancherio/os/$@ $(dir $@)
|
|
|
|
|
|
build-all: ros-build-image
|
|
./scripts/docker-run.sh make -f Makefile.docker FORCE_PULL=$(FORCE_PULL) $@
|
|
|
|
mkdir -p bin dist
|
|
docker cp ros-build:/go/src/github.com/rancherio/os/bin/rancheros bin/
|
|
docker cp ros-build:/go/src/github.com/rancherio/os/dist/artifacts dist/
|
|
|
|
|
|
version:
|
|
@echo $(VERSION)
|
|
|
|
|
|
clean:
|
|
rm -rf bin build dist gopath .dockerfile
|
|
|
|
|
|
.PHONY: all compile clean build-all ros-build-image ros-build-base version bin/rancheros
|