about summary refs log tree commit diff
path: root/Makefile
blob: 1cb0e5a06c10859991224e9b76fbf5fbdf382961 (plain) (blame)
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
VERSION = 0.9.5
SBINDIR ?= /usr/sbin
DRACUTMODDIR ?= /usr/lib/dracut/modules.d/01vmklive

all:
	sed -e "s|@@MKLIVE_VERSION@@|${VERSION}|g" mklive.sh.in > mklive.sh

install: all
	install -d $(DESTDIR)$(SBINDIR)
	install -m755 mklive.sh $(DESTDIR)$(SBINDIR)/void-mklive
	install -d $(DESTDIR)$(DRACUTMODDIR)
	install -m755 dracut/dracut-module.sh \
		$(DESTDIR)$(DRACUTMODDIR)/module-setup.sh
	install -m755 dracut/dracut-vmklive-adduser.sh \
		$(DESTDIR)$(DRACUTMODDIR)/vmklive-adduser.sh

clean:
	-rm -f mklive.sh

dist:
	@echo "Building distribution tarball for tag: v$(VERSION) ..."
	-@git archive --format=tar --prefix=void-mklive-$(VERSION)/ \
		v$(VERSION) | xz -9 > ~/void-mklive-$(VERSION).tar.xz

.PHONY: all clean install dist