logo

inaban

Distrustful Wayland Compositor (inspired by XMonad and dwm) git clone https://hacktivis.me/git/inaban.git
commit: f0eb0911f138e55da0e5d88be91080044c4e00d6
parent 0c53c371ec99c79bf7aae673e97be32b0026f2b9
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun,  3 Jan 2021 05:21:47 +0100

Move wayland-protocols files into ./protocols/

Diffstat:

MMakefile10+++++-----
Aprotocols/.keepdir0
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -21,22 +21,22 @@ EXE = inaban TRANS = SRC = xdg-decoration.c commands.c inaban.c -CDEPS = -DDATADIR=\"$(DATADIR)\" -DPACKAGE=\"$(PACKAGE)\" -D_POSIX_C_SOURCE=200809L -DWLR_USE_UNSTABLE -I. +CDEPS = -DDATADIR=\"$(DATADIR)\" -DPACKAGE=\"$(PACKAGE)\" -D_POSIX_C_SOURCE=200809L -DWLR_USE_UNSTABLE -I./protocols CDEPS += `pkg-config --cflags $(DEPS)` LIBS = `pkg-config --libs $(DEPS)` WAYLAND_PROTOCOLS=`pkg-config --variable=pkgdatadir wayland-protocols` WAYLAND_SCANNER=`pkg-config --variable=wayland_scanner wayland-scanner` -all: xdg-shell-protocol.c $(EXE) $(TRANS) +all: protocols/xdg-shell-protocol.c $(EXE) $(TRANS) inaban: $(SRC) inaban.h config.h $(CC) -std=c99 $(CFLAGS) $(CDEPS) -o $@ $(SRC) $(LDFLAGS) $(LIBS) -xdg-shell-protocol.h: +protocols/xdg-shell-protocol.h: $(WAYLAND_SCANNER) server-header $(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@ -xdg-shell-protocol.c: xdg-shell-protocol.h +protocols/xdg-shell-protocol.c: protocols/xdg-shell-protocol.h $(WAYLAND_SCANNER) private-code $(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@ install: all @@ -48,7 +48,7 @@ install: all #cp -r locale/ $(DESTDIR)$(DATADIR) clean: - rm -fr locale $(EXE) xdg-shell-protocol.c xdg-shell-protocol.h + rm -fr locale $(EXE) protocols/xdg-shell-protocol.c protocols/xdg-shell-protocol.h format: *.c *.h clang-format -style=file -assume-filename=.clang-format -i *.c *.h diff --git a/protocols/.keepdir b/protocols/.keepdir