diff options
Diffstat (limited to 'hcid/Makefile.am')
-rw-r--r-- | hcid/Makefile.am | 13 |
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) |