diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2004-04-03 09:51:21 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2004-04-03 09:51:21 +0000 |
commit | fc97038015af1e86b5daa8880ee36d0fbfa9ed6b (patch) | |
tree | f4a53cc1b7260c034e08e2cf60f03c0b971b3df9 /scripts | |
parent | e35ae5a897dc9ebd0263e40b8e3ef6f7e12eba15 (diff) | |
download | bluez-fc97038015af1e86b5daa8880ee36d0fbfa9ed6b.tar.gz |
Simplify init script installation
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 8c6e56d2a..8e05086ba 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 |