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

39 lines
775 B
Makefile
Raw Normal View History

2015-07-23 13:53:01 +00:00
include common.make
2015-07-23 13:53:01 +00:00
compile: bin/rancheros
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.base .
ros-build-image:
2015-07-23 13:53:01 +00:00
docker build -t ros-build .
bin/rancheros: ros-build-image
./scripts/docker-run.sh make -f Makefile.docker $@
2015-07-23 13:53:01 +00:00
docker cp ros-build:/go/src/github.com/rancherio/os/$@ $(dir $@)
2015-07-23 13:53:01 +00:00
build-all: ros-build-image
./scripts/docker-run.sh make -f Makefile.docker FORCE_PULL=$(FORCE_PULL) $@
2015-07-23 13:53:01 +00:00
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)
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