forked from dracut-crypt-ssh/dracut-crypt-ssh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (20 loc) · 641 Bytes
/
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
include config.mk
export DESTDIR=
export MODULEDIR=${DESTDIR}/usr/$(DRACUT_MODULEDIR)
ifeq ($(NEED_CRYPTSETTLE),1)
SUBDIRS=modules/60crypt-ssh modules/cryptsettle-patch
else
SUBDIRS=modules/60crypt-ssh
endif
.PHONY: install all clean dist $(SUBDIRS)
all: $(SUBDIRS)
install: $(SUBDIRS)
mkdir -p $(DESTDIR)/etc/dracut.conf.d/
cp crypt-ssh.conf $(DESTDIR)/etc/dracut.conf.d/
clean: $(SUBDIRS)
rm -f dracut-crypt-ssh-*gz config.mk
$(SUBDIRS):
$(MAKE) -C $@ $(MAKECMDGOALS)
DISTNAME=dracut-crypt-ssh-$(shell git describe --tags | sed s:v::)
dist:
git archive --format=tar --prefix=$(DISTNAME)/ HEAD | gzip -9 > $(DISTNAME).tar.gz