summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-07-27 13:01:42 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-07-27 13:01:42 +0000
commitc37be1ab2480c43fdaec098f75ec5e25a65ceb59 (patch)
treef0eaa2724a40b1b253b320f90d70747a665b44f4 /hcid
parentd040d4f33ef0c6388ea70b4b9f3ef3537f0ed60a (diff)
Make more parts optional
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)