2022-05-22 14:01:25 +02:00
|
|
|
# To be overwritten by user
|
|
|
|
PKGNAME=
|
|
|
|
DESTDIR=/
|
|
|
|
|
|
|
|
# Constants
|
|
|
|
BINDIR=/usr/bin/
|
|
|
|
LIBDIR=/usr/lib/
|
|
|
|
CFGDIR=/etc/
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: install
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
|
|
|
install -Dm0555 rotate-screen.py '$(DESTDIR)$(BINDIR)'rotate-screen
|
2022-05-23 13:29:57 +02:00
|
|
|
install -Dm0644 -o0 example.json '$(DESTDIR)$(CFGDIR)'rotate-screen.json
|
2022-05-22 14:01:25 +02:00
|
|
|
|
|
|
|
.PHONY: check-pkgname
|
|
|
|
check-pkgname:
|
|
|
|
[ '$(PKGNAME)' != '' ] # Variable PKGNAME must not be empty
|
|
|
|
|
|
|
|
# This does not remove the launcher from xfce4
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -rf '$(DESTDIR)$(BINDIR)'rotate-screen
|
2022-05-23 13:29:57 +02:00
|
|
|
rm -rf '$(DESTDIR)$(CFGDIR)'rotate-screen.json
|