organized project directory. makefile broken

This commit is contained in:
2026-07-07 08:09:54 -07:00
parent 1fce028eea
commit f09db214cc
20 changed files with 32 additions and 63 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -euo pipefail
XML="/usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml"
if [ ! -f "$XML" ]; then
echo "Cannot find xdg-shell XML at: $XML" >&2
exit 1
fi
OUTDIR="."
mkdir -p "$OUTDIR"
wayland-scanner client-header "$XML" "$OUTDIR/xdg-shell-client-protocol.h"
wayland-scanner private-code "$XML" "$OUTDIR/xdg-shell-client-protocol.c"
echo "Generated:"
ls -l "$OUTDIR/xdg-shell-client-protocol.h" "$OUTDIR/xdg-shell-client-protocol.c"