-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (27 loc) · 982 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
29
30
31
sbindir = /usr/sbin
bindir = /usr/bin
pamlibdir = /lib/security
DESTDIR =
all:
@(cd src; $(MAKE) all)
clean:
@echo "Cleaning..."
@(cd src; $(MAKE) clean)
@rm -rf bin lib
install: all
mkdir -p $(DESTDIR)$(sbindir)
install bin/yubi_zeromq_server $(DESTDIR)$(sbindir)/yubi_zeromq_server
install bin/generate_random_token $(DESTDIR)$(sbindir)/generate_random_token
install bin/update_yubi_db $(DESTDIR)$(sbindir)/update_yubi_db
mkdir -p $(DESTDIR)$(bindir)
install bin/test_yubi_server $(DESTDIR)$(bindir)/test_yubi_server
mkdir -p $(DESTDIR)$(pamlibdir)
install lib/pam_yubikey.so $(DESTDIR)$(pamlibdir)/pam_yubikey.so
mkdir -p $(DESTDIR)/var/lib/yubikey-server
chmod 700 $(DESTDIR)/var/lib/yubikey-server
# install src/yubikey-add-key.py $(DESTDIR)$(sbindir)/yubikey-add-key
uninstall:
rm -f $(DESTDIR)$(sbindir)/yubi_zeromq_server
rm -f $(DESTDIR)$(bindir)/test_yubi_server
rm -f $(DESTDIR)$(pamlibdir)/pam_yubikey.so
rm -f $(DESTDIR)$(sbindir)/yubikey-add-key