aboutsummarylogtreecommitdiffstats
path: root/Makefile
blob: 0e027f9ce4fad83d3f85dabc7c4952d755c5f8da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# To be overwritten by user
PKGNAME=
DESTDIR=/

# Constants
BINDIR=/usr/bin/
LIBDIR=/usr/lib/

.PHONY: all
all: install add-xfce4-launcher

.PHONY: install
install:
	install -Dm0555 toggle-bluetooth.sh '$(DESTDIR)$(BINDIR)'toggle-bluetooth

.PHONY: add-xfce4-launcher
add-xfce4-launcher:
	./xfce4-add-launcher.sh
	xfce4-panel -r

.PHONY: check-pkgname
check-pkgname:
	[ '$(PKGNAME)' != '' ]  # Variable PKGNAME must not be empty

# This does not remove the launcher from xfce4
.PHONY: clean
clean:
	rm '$(DESTDIR)$(BINDIR)'toggle-bluetooth