summaryrefslogtreecommitdiff
path: root/Makefile
blob: 699b2a13e64d1ce62f614d94406e64c2f2baf504 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
prefix := /usr/local
bindir := $(prefix)/bin
CFLAGS += $(shell pkg-config --cflags dbus-1) -Wall -Wextra -std=c99
LDLIBS := $(shell pkg-config --libs dbus-1)

inhibit-screensaver: inhibit-screensaver.o

clean:
	$(RM) inhibit-screensaver.o inhibit-screensaver

install:
	install -D -m0755 inhibit-screensaver $(bindir)

uninstall:
	$(RM) $(bindir)/inhibit-screensaver