commit d916cac6293cf4d4bf68e5debd962d0a434f2094 parent 5a4a636be72d4cc9ee42febee84144fce2026905 Author: shrub <maybeshrub@gmail.com> Date: Fri, 30 Jan 2026 20:40:12 +0000 more makefile changes Diffstat:
| M | Makefile | | | 21 | +++++++++++++++++---- |
| M | protocol/local.mk | | | 12 | +++--------- |
2 files changed, 20 insertions(+), 13 deletions(-)
diff --git a/Makefile b/Makefile @@ -89,13 +89,19 @@ PROTO_EXTENSIONS= \ .for xml in ${PROTO_EXTENSIONS} _base=${xml:T:R} -protocol/${_base}-protocol.c: ${xml} +protocol/${_base}-protocol.c: ${xml} \ + protocol/${_base}-server-protocol.h \ + protocol/${_base}-client-protocol.h @echo " GEN $@" - @${WAYLAND_SCANNER} code < ${.ALLSRC} > ${.TARGET} + @${WAYLAND_SCANNER} code ${xml} ${.TARGET} protocol/${_base}-server-protocol.h: ${xml} @echo " GEN $@" - @${WAYLAND_SCANNER} server-header < ${.ALLSRC} > ${.TARGET} + @${WAYLAND_SCANNER} server-header ${xml} ${.TARGET} + +protocol/${_base}-client-protocol.h: ${xml} + @echo " GEN $@" + @${WAYLAND_SCANNER} client-header ${xml} ${.TARGET} .endfor PROTO_GEN_C= \ @@ -109,12 +115,19 @@ PROTO_GEN_C= \ PROTO_GEN_H= \ protocol/linux-dmabuf-unstable-v1-server-protocol.h \ + protocol/linux-dmabuf-unstable-v1-client-protocol.h \ protocol/server-decoration-server-protocol.h \ + protocol/server-decoration-client-protocol.h \ protocol/swc-server-protocol.h \ + protocol/swc-client-protocol.h \ protocol/swc_snap-server-protocol.h \ + protocol/swc_snap-client-protocol.h \ protocol/wayland-drm-server-protocol.h \ + protocol/wayland-drm-client-protocol.h \ protocol/xdg-decoration-unstable-v1-server-protocol.h \ - protocol/xdg-shell-server-protocol.h + protocol/xdg-decoration-unstable-v1-client-protocol.h \ + protocol/xdg-shell-server-protocol.h \ + protocol/xdg-shell-client-protocol.h cursor/cursor_data.h: cursor/cursor.pcf cursor/convert_font @echo " GEN $@" diff --git a/protocol/local.mk b/protocol/local.mk @@ -17,17 +17,11 @@ $(dir)_PACKAGES := wayland-server .for ext in ${PROTOCOL_EXTENSIONS} proto_base := ${ext:T:R} -${dir}/${proto_base}-protocol.c: ${ext} \ - ${dir}/${proto_base}-server-protocol.h \ - ${dir}/${proto_base}-client-protocol.h +${dir}/${proto_base}-protocol.c: ${ext} + ${Q_GEN}${WAYLAND_SCANNER} server-header ${ext} ${dir}/${proto_base}-server-protocol.h + ${Q_GEN}${WAYLAND_SCANNER} client-header ${ext} ${dir}/${proto_base}-client-protocol.h ${Q_GEN}${WAYLAND_SCANNER} code ${ext} ${.TARGET} -${dir}/${proto_base}-server-protocol.h: ${ext} - ${Q_GEN}${WAYLAND_SCANNER} server-header ${ext} ${.TARGET} - -${dir}/${proto_base}-client-protocol.h: ${ext} - ${Q_GEN}${WAYLAND_SCANNER} client-header ${ext} ${.TARGET} - CLEAN_FILES += ${dir}/${proto_base}-protocol.c \ ${dir}/${proto_base}-server-protocol.h \ ${dir}/${proto_base}-client-protocol.h