summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/Makefile.am4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 6130c842..f375290c 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -8,4 +8,6 @@ EXTRA_DIST = bluepin bluetooth.init bluetooth.default create_dev
install-data-local:
$(INSTALL) -D -m 755 $(srcdir)/bluetooth.init $(DESTDIR)$(sysconfdir)/init.d/bluetooth
- $(INSTALL) -D -m 644 $(srcdir)/bluetooth.default $(DESTDIR)$(sysconfdir)/default/bluetooth
+ $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/default
+ [ -f $(DESTDIR)$(sysconfdir)/default/bluetooth ] || \
+ $(INSTALL_DATA) $(srcdir)/bluetooth.default $(DESTDIR)$(sysconfdir)/default/bluetooth