blob: 28c6b96f52304e6c0e0de50ef23bb94849d184b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
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/
@scripts/make-version-file
.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
.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/*
|