void-mklive/Makefile

24 lines
686 B
Makefile
Raw Normal View History

2012-06-12 15:08:41 +00:00
VERSION = 0.9.6
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)
2012-06-14 08:57:54 +00:00
install -m755 dracut/module-setup.sh $(DESTDIR)$(DRACUTMODDIR)
install -m755 dracut/vmklive-adduser.sh $(DESTDIR)$(DRACUTMODDIR)
clean:
-rm -f mklive.sh
2012-06-12 14:39:45 +00:00
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