-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (29 loc) · 1.01 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
# SPDX-License-Identifier: GPLv3
#
# Makefile
# Copyright Peter Jones <[email protected]>
#
TOPDIR ?= .
DESTDIR ?= temp
VERSION ?= 0
include $(TOPDIR)/utils.mk
all:
install :
install -m 0755 -d "$(DESTDIR)/usr/lib/dracut/modules.d/99grub2-emu-kexec"
install -m 0644 -t "$(DESTDIR)/usr/lib/dracut/modules.d/99grub2-emu-kexec" $(wildcard 99grub2-emu-kexec/*)
install -m 0755 -d "$(DESTDIR)/usr/lib/dracut/modules.d/99grub2-emu-switchroot"
install -m 0644 -t "$(DESTDIR)/usr/lib/dracut/modules.d/99grub2-emu-switchroot" $(wildcard 99grub2-emu-switchroot/*)
install -m 0755 -d "$(DESTDIR)/etc/dracut.conf.d"
install -m 0644 -t "$(DESTDIR)/etc/dracut.conf.d" etc/dracut.conf.d/grub2-emu.conf
dracut-nmbl-$(VERSION).tar.xz : Makefile
@git archive --format=tar --prefix=dracut-nmbl-$(VERSION)/ HEAD -- \
99grub2-emu-kexec/ \
99grub2-emu-switchroot/ \
etc/ \
Makefile \
| xz > $@
tarball : dracut-nmbl-$(VERSION).tar.xz
clean :
@rm -vf dracut-nmbl-$(VERSION).tar.xz
.PHONY: all install clean tarball
# vim:ft=make