-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
34 lines (25 loc) · 1 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
BINARY = \
bin/mkluminus
MODULES = \
bin/modules/airootfs.in \
bin/modules/bootmode.in \
bin/modules/image.in \
bin/modules/pacman.in \
bin/modules/profiledef.in \
bin/modules/qemu.in
AIROOTFS = airootfs/*
PACKAGES = packages/*
EFIBOOT = efiboot/*
install:
install -dm0755 $(DESTDIR)$(PREFIX)/opt/mkluminus/
install -dm0755 $(DESTDIR)$(PREFIX)/opt/mkluminus/airootfs/
install -dm0755 $(DESTDIR)$(PREFIX)/opt/mkluminus/bin/
install -dm0755 $(DESTDIR)$(PREFIX)/opt/mkluminus/bin/modules/
install -dm0755 $(DESTDIR)$(PREFIX)/opt/mkluminus/efiboot/
install -dm0755 $(DESTDIR)$(PREFIX)/opt/mkluminus/packages/
install -m0755 ${BINARY} $(DESTDIR)$(PREFIX)/opt/mkluminus/bin/
install -m0755 ${MODULES} $(DESTDIR)$(PREFIX)/opt/mkluminus/bin/modules/
cp -r ${AIROOTFS} $(DESTDIR)$(PREFIX)/opt/mkluminus/airootfs/
cp -r ${EFIBOOT} $(DESTDIR)$(PREFIX)/opt/mkluminus/efiboot/
cp -r ${PACKAGES} $(DESTDIR)$(PREFIX)/opt/mkluminus/packages/
ln -sf $(DESTDIR)$(PREFIX)/opt/mkluminus/bin/mkluminus /usr/sbin/mkluminus