make: track wayland xml files

This commit is contained in:
Jari Vetoniemi 2020-02-08 10:48:07 +02:00
parent 17fe1f47c9
commit fa83f1cc21

View File

@ -51,14 +51,14 @@ bemenu-renderer-x11.so: private override LDLIBS += $(shell pkg-config --libs x11
bemenu-renderer-x11.so: private override CPPFLAGS += $(shell pkg-config --cflags-only-I x11 xinerama cairo pango pangocairo)
bemenu-renderer-x11.so: lib/renderers/cairo.h lib/renderers/x11/x11.c lib/renderers/x11/x11.h lib/renderers/x11/window.c lib/renderers/x11/xkb_unicode.c lib/renderers/x11/xkb_unicode.h
lib/renderers/wayland/xdg-shell.c:
wayland-scanner private-code < "$$(pkg-config --variable=pkgdatadir wayland-protocols)/stable/xdg-shell/xdg-shell.xml" > $@
lib/renderers/wayland/xdg-shell.c: $(shell pkg-config --variable=pkgdatadir wayland-protocols)/stable/xdg-shell/xdg-shell.xml
wayland-scanner private-code < $^ > $@
lib/renderers/wayland/wlr-layer-shell-unstable-v1.h:
wayland-scanner client-header < $(subst .h,.xml,$@) > $@
lib/renderers/wayland/wlr-layer-shell-unstable-v1.h: lib/renderers/wayland/wlr-layer-shell-unstable-v1.xml
wayland-scanner client-header < $^ > $@
lib/renderers/wayland/wlr-layer-shell-unstable-v1.c:
wayland-scanner private-code < $(subst .c,.xml,$@) > $@
lib/renderers/wayland/wlr-layer-shell-unstable-v1.c: lib/renderers/wayland/wlr-layer-shell-unstable-v1.xml
wayland-scanner private-code < $^ > $@
xdg-shell.a: lib/renderers/wayland/xdg-shell.c
wlr-layer-shell.a: lib/renderers/wayland/wlr-layer-shell-unstable-v1.c lib/renderers/wayland/wlr-layer-shell-unstable-v1.h