forked from mod-audio/mod-live-usb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (29 loc) · 985 Bytes
/
Makefile
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
45
46
47
48
49
50
# also change in archiso/liveusb/profiledef.sh
VERSION = 8
all: iso
# step 1: build toolchain
toolchain: toolchain/.stamp_built
toolchain/.stamp_built: toolchain/build.sh toolchain/Dockerfile
./$<
# step 2: build common bootstrap packages
bootstrap: bootstrap/.stamp_built
bootstrap/.stamp_built: bootstrap/build.sh toolchain
./$<
# step 3: build plugins bootstrap
plugins-bootstrap: plugins/.stamp_built
plugins/.stamp_built: plugins/build.sh plugins/Dockerfile toolchain
./$<
# step 4: build mod-os image
mod-os: mod-os/.stamp_built
mod-os/.stamp_built: mod-os/build.sh mod-os/Dockerfile bootstrap
./$<
# step 5: build plugins
plugins: plugins-bootstrap
$(MAKE) -C plugins
# .PHONY: plugins
# step 6: build ISO
iso: archiso/output/mod-live-usb-v$(VERSION)-x86_64.iso
archiso/output/%.iso: archiso/build.sh archiso/Dockerfile archiso/liveusb/packages.x86_64 mod-os
./$<
run:
./archiso/run_archiso.sh -i ./archiso/output/mod-live-usb-v$(VERSION)-x86_64.iso