summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: e1d8c0ddda66453f3f307260d8e3d4e5d1bb36a3 (plain)
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
CFLAGS += -Wall -O2
LDLIBS += -lcrypt

EXECUTABLES = crypt

all: $(EXECUTABLES)

check:
	./check

clean:
	rm -f *.o
	rm -f $(EXECUTABLES)

install: $(EXECUTABLES)
	mkdir -p $(DESTDIR)/lib/cryptsetup
	cp askpass $(DESTDIR)/lib/cryptsetup/
	
	mkdir -p $(DESTDIR)/usr/share/initramfs-tools/hooks/
	cp hooks/* $(DESTDIR)/usr/share/initramfs-tools/hooks/
	
	mkdir -p $(DESTDIR)/usr/lib/cryptsetup-nuke-password
	cp crypt $(DESTDIR)/usr/lib/cryptsetup-nuke-password/

.PHONY: check clean install