summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
Diffstat (limited to 'hcid')
-rw-r--r--hcid/Makefile.am26
1 files changed, 5 insertions, 21 deletions
diff --git a/hcid/Makefile.am b/hcid/Makefile.am
index 5201855d..256eba76 100644
--- a/hcid/Makefile.am
+++ b/hcid/Makefile.am
@@ -2,6 +2,10 @@
# $Id$
#
+confdir = $(sysconfdir)/bluetooth
+
+conf_DATA = hcid.conf
+
sbin_PROGRAMS = hcid
if DBUS
@@ -15,7 +19,6 @@ dbus_hcid_cflags =
endif
hcid_SOURCES = main.c security.c hcid.h lib.c lib.h parser.h parser.y lexer.l kword.h kword.c glib-ectomy.h glib-ectomy.c $(dbus_hcid_sources)
-hcid_CONFIG = hcid.conf
LIBS = $(dbus_hcid_libs) @BLUEZ_LIBS@
@@ -27,25 +30,6 @@ AM_YFLAGS = -d
CLEANFILES = lexer.c parser.c parser.h
-EXTRA_DIST = $(hcid_CONFIG) $(man_MANS) dbus.c
+EXTRA_DIST = $(man_MANS) $(conf_DATA) dbus.c
MAINTAINERCLEANFILES = Makefile.in
-
-#
-# Install configuration files
-#
-confdir = $(sysconfdir)/bluetooth
-conf_FILE = $(confdir)/$(hcid_CONFIG)
-pin_FILE = $(confdir)/pin
-
-install-data-local:
- $(mkinstalldirs) $(DESTDIR)$(confdir)
- [ -f $(DESTDIR)$(conf_FILE) ] || \
- $(INSTALL_DATA) $(srcdir)/$(hcid_CONFIG) $(DESTDIR)$(conf_FILE)
- [ -f $(DESTDIR)$(pin_FILE) ] || \
- echo "BlueZ" > $(DESTDIR)$(pin_FILE); \
- chmod 600 $(DESTDIR)$(pin_FILE)
-
-uninstall-local:
- @rm -f $(DESTDIR)$(conf_FILE)
- @rm -f $(DESTDIR)$(pin_FILE)