-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
35 lines (29 loc) · 898 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
32
33
34
35
#
#
PERL ?= /usr/bin/perl
DESTDIR ?= /
PREFIX ?= /usr
LIBEXEC = $(DESTDIR)/$(PREFIX)/libexec
SBIN = $(DESTDIR)/$(PREFIX)/sbin
MAN = $(DESTDIR)/$(PREFIX)/share/man
MAN5 = $(MAN)/man5
MAN8 = $(MAN)/man8
ETC = $(DESTDIR)/etc/krb5
CFLAGS += -DKRB5_KEYTABC_PATH=\"$(PREFIX)/libexec/krb5_keytabc\"
all:
cd scripts && $(MAKE) PERL='$(PERL)' PREFIX='$(PREFIX)'
cd suid_helper && $(MAKE) CFLAGS='$(CFLAGS)'
install:
umask 022 && mkdir -p $(LIBEXEC)
umask 022 && mkdir -p $(SBIN)
umask 022 && mkdir -p $(MAN5)
umask 022 && mkdir -p $(MAN8)
umask 022 && mkdir -p $(ETC)
install -c -m 4755 -o root suid_helper/krb5_keytab $(SBIN)
install -c -m 755 scripts/krb5_keytabc $(LIBEXEC)
install -c -m 644 man/krb5_keytab.conf.5 $(MAN5)
install -c -m 644 man/krb5_keytab.8 $(MAN8)
install -c -m 644 etc/krb5_keytab.conf $(ETC)
clean:
cd scripts && $(MAKE) clean
cd suid_helper && $(MAKE) clean