summarylogtreecommitdiffstats
path: root/Makefile
blob: ead889ff470076aa129a6279113a932dc244f4c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
PREFIX = /usr
INSTALL = install
CFLAGS += -Wall -D__dead=
FLAGS = $(shell pkg-config --libs --cflags xscrnsaver xext x11)

xidle:
	$(CC) -o xidle xidle.c $(CFLAGS) $(LDFLAGS) $(FLAGS)

install:
	$(INSTALL) -D -m 0755 xidle $(DESTDIR)/$(PREFIX)/bin/xidle
	$(INSTALL) -D -m 0644 xidle.1 $(DESTDIR)/$(PREFIX)/share/man/man1/xidle.1