Files
OpenNetworkLinux/Makefile
Jeffrey Townsend bb84a17805 Add 'make docker' target.
The 'make docker' target will verify that docker is installed and run the builder in update and isolation mode.
2016-01-26 11:35:05 -08:00

46 lines
1.0 KiB
Makefile

############################################################
#
# Rudimentary work in progress.
#
############################################################
ifneq ($(MAKECMDGOALS),docker)
ifndef ONL
$(error Please source the setup.env script at the root of the ONL tree)
endif
include $(ONL)/make/config.mk
all: amd64 ppc
$(MAKE) -C REPO build-clean
onl-amd64 onl-x86 x86 x86_64 amd64:
$(MAKE) -C packages/base ARCHES=amd64,all
$(MAKE) -C builds/amd64/rootfs
$(MAKE) -C builds/amd64/swi
$(MAKE) -C builds/amd64/installer/legacy
onl-ppc ppc:
$(MAKE) -C packages/base ARCHES=powerpc,all
$(MAKE) -C builds/powerpc/rootfs
$(MAKE) -C builds/powerpc/swi
$(MAKE) -C builds/powerpc/installer/legacy
rpc rebuild:
$(ONLPM) --rebuild-pkg-cache
endif
.PHONY: docker
ifndef VERSION
VERSION:=7
endif
docker_check:
@which docker > /dev/null || (echo "*** Docker appears to be missing. Please install docker.io in order to build OpenNetworkLinux." && exit 1)
docker: docker_check
@docker/tools/onlbuilder -$(VERSION) --isolate --hostname onlbuilder$(VERSION) --pull