summaryrefslogtreecommitdiffstats
path: root/hcid/Makefile.am
diff options
context:
space:
mode:
authorMax Krasnyansky <maxk@qualcomm.com>2002-05-23 20:57:19 +0000
committerMax Krasnyansky <maxk@qualcomm.com>2002-05-23 20:57:19 +0000
commite4108aa9ba79bc6e898fa1581e2c4a56a68ad10d (patch)
treeeb8abda8eb8231652b1f3ea708577ef11226e760 /hcid/Makefile.am
parentd8ab2999e595a6cf7e853c881d1716c7262fe74a (diff)
Build env cleanup. Remove auto generated files from CVS.
Working 'make distcheck'.
Diffstat (limited to 'hcid/Makefile.am')
-rw-r--r--hcid/Makefile.am13
1 files changed, 8 insertions, 5 deletions
diff --git a/hcid/Makefile.am b/hcid/Makefile.am
index 59358cec..49386a93 100644
--- a/hcid/Makefile.am
+++ b/hcid/Makefile.am
@@ -5,24 +5,27 @@
sbin_PROGRAMS = hcid
hcid_SOURCES = main.c security.c hcid.h lib.c lib.h parser.h parser.y lexer.l kword.h kword.c
+hcid_CONFIG = hcid.conf
hcid_LDADD = @GLIB_LDFLAGS@
INCLUDES = @GLIB_CFLAGS@
-YFLAGS = -d
+YFLAGS = -d
CLEANFILES = lexer.c parser.c parser.h
-confdir = $(prefix)/etc/bluetooth
-conf_FILE = $(confdir)/hcid.conf
-pin_FILE = $(confdir)/pin
+EXTRA_DIST = $(hcid_CONFIG)
#
# Install configuration files
#
+confdir = $(prefix)/etc/bluetooth
+conf_FILE = $(confdir)/$(hcid_CONFIG)
+pin_FILE = $(confdir)/pin
+
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(confdir)
[ -f $(DESTDIR)$(conf_FILE) ] || \
- $(INSTALL_DATA) $(srcdir)/hcid.conf $(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)