-
Notifications
You must be signed in to change notification settings - Fork 66
/
Makefile
40 lines (33 loc) · 1.33 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
DESTDIR=
PREFIX=/usr
CONFDIR=/etc/zfsbootmenu
MODDIR=$(PREFIX)/share
DRACUTDIR=$(PREFIX)/lib/dracut/modules.d
INITCPIODIR=$(PREFIX)/lib/initcpio
MANDIR=$(PREFIX)/share/man
BINDIR=$(PREFIX)/bin
EXAMPLES=$(PREFIX)/share/examples/zfsbootmenu
.PHONY: install core dracut initcpio zbm-release show-version
zbm-release:
./releng/version.sh -u
install: core dracut initcpio zbm-release
core: zbm-release
./install-tree.sh zfsbootmenu "$(DESTDIR)/$(MODDIR)/zfsbootmenu"
install -m 0644 -t "$(DESTDIR)/$(CONFDIR)" -D etc/zfsbootmenu/config.yaml
install -m 0755 -t "$(DESTDIR)/$(BINDIR)" -D bin/*
install -m 0644 -t "$(DESTDIR)/$(MANDIR)/man5" -D docs/man/dist/man5/*.5
install -m 0644 -t "$(DESTDIR)/$(MANDIR)/man7" -D docs/man/dist/man7/*.7
install -m 0644 -t "$(DESTDIR)/$(MANDIR)/man8" -D docs/man/dist/man8/*.8
install -m 0755 -t "$(DESTDIR)/$(EXAMPLES)/hooks" -D contrib/*
install -m 0755 -t "$(DESTDIR)/$(EXAMPLES)" -D examples/*
install -m 0644 -t "$(DESTDIR)/$(EXAMPLES)" -D media/splash.bmp
dracut:
./install-tree.sh dracut "$(DESTDIR)/$(DRACUTDIR)/90zfsbootmenu"
install -m 0644 -t \
"$(DESTDIR)/$(CONFDIR)/dracut.conf.d/" \
-D etc/zfsbootmenu/dracut.conf.d/*
initcpio:
./install-tree.sh initcpio "$(DESTDIR)/$(INITCPIODIR)"
install -m 0644 -t "$(DESTDIR)/$(CONFDIR)" -D etc/zfsbootmenu/mkinitcpio.conf
show-version:
@ ./releng/version.sh