summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-kpasswd/Makefile.am
blob: 02145d2518b4f251eedc61100c72fd3af538e817 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
NULL =

INCLUDES =							\
	-I.							\
	-I$(srcdir)						\
	-DPREFIX=\""$(prefix)"\" 				\
	-DBINDIR=\""$(bindir)"\"				\
	-DLIBDIR=\""$(libdir)"\" 				\
	-DLIBEXECDIR=\""$(libexecdir)"\"			\
	-DDATADIR=\""$(datadir)"\"				\
	$(LDAP_CFLAGS)						\
	$(KRB5_CFLAGS)						\
	$(WARN_CFLAGS)						\
	$(NULL)

sbin_PROGRAMS =			\
	ipa_kpasswd		\
	$(NULL)

ipa_kpasswd_SOURCES = 		\
	ipa_kpasswd.c		\
	$(NULL)

ipa_kpasswd_LDADD =		\
	$(LDAP_LIBS)		\
	$(KRB5_LIBS)		\
	$(NULL)

EXTRA_DIST =			\
	README			\
	ipa-kpasswd.init	\
	$(NULL)

MAINTAINERCLEANFILES =		\
	*~			\
	Makefile.in

initdir=$(sysconfdir)/rc.d/init.d

install-data-hook: ipa-kpasswd.init

	if test '!' -d $(DESTDIR)$(initdir); then \
		$(mkinstalldirs) $(DESTDIR)$(initdir); \
		chmod 755 $(DESTDIR)$(initdir); \
	fi

	$(INSTALL_SCRIPT) $(srcdir)/ipa-kpasswd.init $(DESTDIR)$(initdir)/ipa-kpasswd

uninstall-hook:
	rm -f $(DESTDIR)$(initdir)/ipa-kpasswd