diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.am | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 8c6e56d2..8e05086b 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -4,17 +4,10 @@ bin_SCRIPTS = bluepin -EXTRA_DIST = bluepin bluetooth.rc.rh bluetooth.rc.deb create_dev +EXTRA_DIST = bluepin bluetooth.rc.rh bluetooth.rc.deb create_dev -install-data-local: @DISTRO@ - -unknown: - -echo Unknown distribution - -redhat: - $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/rc.d/init.d - $(INSTALL) -m 755 $(srcdir)/bluetooth.rc.rh $(DESTDIR)$(sysconfdir)/rc.d/init.d/bluetooth - -debian: - $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/init.d - $(INSTALL) -m 755 $(srcdir)/bluetooth.rc.deb $(DESTDIR)$(sysconfdir)/init.d/bluetooth +install-data-local: + [ ! -f /etc/redhat-release -o ! -f /etc/mandrake-release ] || \ + $(INSTALL) -D -m 755 $(srcdir)/bluetooth.rc.rh $(DESTDIR)$(sysconfdir)/rc.d/init.d/bluetooth + [ ! -f /etc/debian_version ] || \ + $(INSTALL) -D -m 755 $(srcdir)/bluetooth.rc.deb $(DESTDIR)$(sysconfdir)/init.d/bluetooth |