summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGuido Cella <guidocella91@gmail.com>2020-08-28 20:18:42 +0200
committerGuido Cella <guido@guidocella.xyz>2020-12-19 12:34:32 +0100
commit41cc23e1cfc248eb10878fd172ca969ed27a5f44 (patch)
tree00a3502e947138ae48968deea30a14977c79342e /Makefile
parent1024928c15cebbeb1c652a6ba4a243f1c330bac8 (diff)
Implement the idle protocol
It allows clients such as swayidle and chat applications to monitor user idle time.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3dc2336..abbbe39 100644
--- a/Makefile
+++ b/Makefile
@@ -33,12 +33,22 @@ wlr-layer-shell-unstable-v1-protocol.c:
wlr-layer-shell-unstable-v1-protocol.o: wlr-layer-shell-unstable-v1-protocol.h
+idle-protocol.h:
+ $(WAYLAND_SCANNER) server-header \
+ protocols/idle.xml $@
+
+idle-protocol.c:
+ $(WAYLAND_SCANNER) private-code \
+ protocols/idle.xml $@
+
+idle-protocol.o: idle-protocol.h
+
config.h: | config.def.h
cp config.def.h $@
-dwl.o: config.h xdg-shell-protocol.h wlr-layer-shell-unstable-v1-protocol.h
+dwl.o: config.h xdg-shell-protocol.h wlr-layer-shell-unstable-v1-protocol.h idle-protocol.h
-dwl: xdg-shell-protocol.o wlr-layer-shell-unstable-v1-protocol.o
+dwl: xdg-shell-protocol.o wlr-layer-shell-unstable-v1-protocol.o idle-protocol.o
clean:
rm -f dwl *.o *-protocol.h *-protocol.c