-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (20 loc) · 697 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (20 loc) · 697 Bytes
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
# Makefile for oled-screensaver
# Installs the OLED-safe screensaver as the `screensaver` command.
#
# sudo make install # -> /usr/local/bin/screensaver
# sudo make uninstall
#
# Honors DESTDIR and PREFIX for packaging:
# make install DESTDIR=/tmp/pkg PREFIX=/usr
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
INSTALL ?= install
.PHONY: all install uninstall
all:
@echo "Nothing to build. Run 'make install' (optionally PREFIX=... DESTDIR=...)."
install:
$(INSTALL) -D -m 0755 oled-safe.sh $(DESTDIR)$(BINDIR)/screensaver
@echo "Installed: $(DESTDIR)$(BINDIR)/screensaver"
uninstall:
rm -f $(DESTDIR)$(BINDIR)/screensaver
@echo "Removed: $(DESTDIR)$(BINDIR)/screensaver"