summaryrefslogtreecommitdiffstats
path: root/src/build-tools/Makefile.in
blob: 885c9921722e1d3bd2e5572973adddf7a12e520e (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
mydir=build-tools
BUILDTOP=$(REL)..

PKGCONFIG_FILES = \
	kadm-client.pc \
	kadm-server.pc \
	kdb.pc \
	mit-krb5.pc \
	krb5.pc \
	mit-krb5-gssapi.pc \
	krb5-gssapi.pc

all-unix:: krb5-config $(PKGCONFIG_FILES)

krb5-config $(PKGCONFIG_FILES): $(BUILDTOP)/config.status
	cd $(BUILDTOP) && $(SHELL) config.status $(mydir)/$@
krb5-config: $(srcdir)/krb5-config.in
kadm-client.pc: $(srcdir)/kadm-client.pc.in
kadm-server.pc: $(srcdir)/kadm-server.pc.in
kdb.pc: $(srcdir)/kdb.pc.in
mit-krb5.pc: $(srcdir)/mit-krb5.pc.in
krb5.pc: $(srcdir)/krb5.pc.in
mit-krb5-gssapi.pc: $(srcdir)/mit-krb5-gssapi.pc.in
krb5-gssapi.pc: $(srcdir)/krb5-gssapi.pc.in

install-unix::
	$(INSTALL_SCRIPT) krb5-config $(DESTDIR)$(CLIENT_BINDIR)/krb5-config
	$(INSTALL_DATA) kadm-client.pc \
		$(DESTDIR)$(PKGCONFIG_DIR)/kadm-client.pc
	$(INSTALL_DATA) kadm-server.pc \
		$(DESTDIR)$(PKGCONFIG_DIR)/kadm-server.pc
	$(INSTALL_DATA) kdb.pc $(DESTDIR)$(PKGCONFIG_DIR)/kdb.pc
	$(INSTALL_DATA) mit-krb5.pc $(DESTDIR)$(PKGCONFIG_DIR)/mit-krb5.pc
	$(INSTALL_DATA) krb5.pc $(DESTDIR)$(PKGCONFIG_DIR)/krb5.pc
	$(INSTALL_DATA) mit-krb5-gssapi.pc \
		$(DESTDIR)$(PKGCONFIG_DIR)/mit-krb5-gssapi.pc
	$(INSTALL_DATA) krb5-gssapi.pc \
		$(DESTDIR)$(PKGCONFIG_DIR)/krb5-gssapi.pc

# Test to ensure that krb5-config does not spit out things like
# $(PURE) or $(LDFLAGS) in case someone changes config/shlib.conf
check-unix:: krb5-config
	$(SHELL) $(srcdir)/t_krbconf