forked from zilogic-systems/workshop-sessions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
80 lines (70 loc) · 1.71 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
git-sessions = \
git-basics \
git-internals \
git-remotes \
git-workflow
git-resources = git-resources
python-sessions = \
python-intro \
python-intro-x \
python-oop \
python-import \
python-fileio \
python-types \
python-errors \
python-unittest-basic
yocto-sessions = \
autotools \
bitbake-data-model \
bitbake-intro \
bitbake-layers \
bitbake-packages \
bitbake-rootfs \
debian-packaging \
manual-rootfs \
yocto-customization \
yocto-getting-started \
yocto-internals \
yocto-intro \
home-automation
kp-sessions = \
devices-intro \
kernel-qemu \
kernel-drivers \
kernel-modules \
kernel-build \
kernel-writing-modules \
kernel-bus-model \
kernel-dt-syntax \
kernel-display \
kernel-boot \
kernel-dt-drivers \
dt-debugging \
kernel-ethernet \
kernel-flash \
kernel-soc \
kernel-dt-by-example \
kernel-gpio \
kernel-pinctrl \
kernel-i2c
eldi-sessions = \
emlinux-intro \
devices-intro-basic \
driver-intro \
uspace-i2c \
sysfs \
uspace-gpio \
uspace-pwm
sessions = $(git-sessions) $(git-resources) $(yocto-sessions) $(kp-sessions) $(eldi-sessions)
all:
for dir in $(sessions); do make -C $$dir; done
install:
rm -fr build
mkdir build
for dir in $(sessions); do make -C $$dir $@ install-extra; done
cd build; tar --gzip -c --transform "s|^|kp-slides/|" -f kp-slides.tar.gz $(kp-sessions)
cd build; tar --gzip -c --transform "s|^|yocto-slides/|" -f yocto-slides.tar.gz $(yocto-sessions)
cd build; tar --gzip -c --transform "s|^|git-slides/|" -f git-slides.tar.gz $(git-sessions)
cd build; tar --gzip -c --transform "s|^|eldi-slides/|" -f eldi-slides.tar.gz $(eldi-sessions)
clean:
for dir in $(sessions); do make -C $$dir clean; done