blob: d20885ac87d1107493abd064a64aa18c8e2b573b (
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
|
#
# $Id$
#
sbin_PROGRAMS = hcid
hcid_SOURCES = main.c security.c hcid.h lib.c lib.h parser.y lexer.l kword.c
hcid_LDADD = @GLIB_LDFLAGS@
INCLUDES = @GLIB_CFLAGS@
YFLAGS = -d
CLEANFILES = lexer.c parser.c parser.h
confdir = $(prefix)/etc/bluetooth
conf_FILE = $(confdir)/hcid.conf
pin_FILE = $(confdir)/pin
#
# Install configuration files
#
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(confdir)
[ -f $(DESTDIR)$(conf_FILE) ] || \
$(INSTALL_DATA) $(srcdir)/hcid.conf $(DESTDIR)$(conf_FILE)
[ -f $(DESTDIR)$(pin_FILE) ] || \
echo "BlueZ" > $(DESTDIR)$(pin_FILE); \
chmod 600 $(DESTDIR)$(pin_FILE)
|