1
0
mirror of https://github.com/rancher/os.git synced 2025-08-02 07:24:28 +00:00
os/Makefile
Wang Long 9e15059789 Replace rancherio with rancher
Signed-off-by: Wang Long <long.wanglong@huawei.com>
2015-10-12 19:50:57 +08:00

48 lines
1.0 KiB
Makefile

include build.conf
FORCE_PULL := 0
DEV_BUILD := 0
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/rancher/os/$@ $(dir $@)
build-all: ros-build-image
./scripts/docker-run.sh make -f Makefile.docker DEV_BUILD=$(DEV_BUILD) FORCE_PULL=$(FORCE_PULL) $@
mkdir -p bin dist
docker cp ros-build:/go/src/github.com/rancher/os/bin/rancheros bin/
docker cp ros-build:/go/src/github.com/rancher/os/dist/artifacts dist/
installer: ros-build-image
./scripts/docker-run.sh --rm make -f Makefile.docker DEV_BUILD=$(DEV_BUILD) FORCE_PULL=$(FORCE_PULL) $@
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 installer