zfsbootmenu/Makefile

41 lines
1.3 KiB
Makefile

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