vyos-build/Makefile
Daniil Baturin 24a8a43077 Keep all common live-build config data in data/live-build-config
If more granular data modification is needed, it can be stored in other data/ subdirs.
2016-01-24 13:34:15 -05:00

44 lines
801 B
Makefile

build_dir := build
.PHONY: all
all:
@echo "Make what specifically?"
@echo "The most common target is 'iso'"
.PHONY: prepare
prepare:
@echo "Starting VyOS ISO image build"
@scripts/check-build-env
@scripts/check-config
@scripts/live-build-config
cp -r data/live-build-config/* build/config/
.PHONY: iso
.ONESHELL:
iso: prepare
@echo "It's not like I'm building this specially for you or anything!"
cd $(build_dir)
lb build 2>&1 | tee build.log
@echo "VyOS ISO build successful"
.PHONY: prepare-package-env
.ONESHELL:
prepare-package-env:
@scripts/pbuilder-config
@scripts/pbuilder-setup
.PHONY: clean
.ONESHELL:
clean:
cd $(build_dir)
lb clean
rm -f config/binary config/bootstrap config/chroot config/common config/source
rm -f build.log
.PHONY: purge
purge:
rm -rf build/*