summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.am
blob: 94508c66022f8cab1ce7a6dd0ce12109c5b087c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

if BLUEPIN
bin_SCRIPTS = bluepin
endif

EXTRA_DIST = bluepin bluetooth.init bluetooth.default create_dev

MAINTAINERCLEANFILES = Makefile.in

if INITSCRIPTS
install-data-local:
	$(INSTALL) -D -m 755 $(srcdir)/bluetooth.init $(DESTDIR)$(sysconfdir)/init.d/bluetooth
	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)/default
	[ -f $(DESTDIR)$(sysconfdir)/default/bluetooth ] || \
		$(INSTALL_DATA) $(srcdir)/bluetooth.default $(DESTDIR)$(sysconfdir)/default/bluetooth

uninstall-local:
	@rm -f $(DESTDIR)$(sysconfdir)/init.d/bluetooth
	@rm -f $(DESTDIR)$(sysconfdir)/default/bluetooth
endif