1
0
mirror of https://github.com/rancher/os.git synced 2025-08-17 14:28:16 +00:00
os/Makefile

48 lines
1.0 KiB
Makefile
Raw Normal View History

include build.conf
FORCE_PULL := 0
DEV_BUILD := 0
2015-07-23 13:53:01 +00:00
compile: bin/rancheros
2015-08-06 07:04:46 +00:00
all: clean ros-build-base build-all
2015-07-23 13:53:01 +00:00
ros-build-base:
docker build -t ros-build-base -f Dockerfile.build-base .
2015-07-23 13:53:01 +00:00
2015-08-06 07:04:46 +00:00
ros-build-image:
docker build -t ros-build -f Dockerfile.build .
2015-07-23 13:53:01 +00:00
bin/rancheros: ros-build-image
./scripts/docker-run.sh make -f Makefile.docker $@
2015-07-23 13:53:01 +00:00
2015-08-12 08:37:17 +00:00
mkdir -p bin
docker cp ros-build:/go/src/github.com/rancher/os/$@ $(dir $@)
2015-07-23 13:53:01 +00:00
build-all: ros-build-image
./scripts/docker-run.sh make -f Makefile.docker DEV_BUILD=$(DEV_BUILD) FORCE_PULL=$(FORCE_PULL) $@
2015-07-23 13:53:01 +00:00
2015-08-12 08:37:17 +00:00
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/
2015-07-23 13:53:01 +00:00
installer: ros-build-image
./scripts/docker-run.sh --rm make -f Makefile.docker DEV_BUILD=$(DEV_BUILD) FORCE_PULL=$(FORCE_PULL) $@
2015-07-23 13:53:01 +00:00
version:
@echo $(VERSION)
2015-07-23 13:53:01 +00:00
clean:
rm -rf bin build dist gopath .dockerfile
.PHONY: all compile clean build-all ros-build-image ros-build-base version bin/rancheros installer