build: add script for collecting dependencies (make requires)

This commit is contained in:
Aleksei Bavshin 2022-06-20 22:07:41 -07:00
commit b1fe840a78
No known key found for this signature in database
GPG key ID: 4F071603387A382A
2 changed files with 133 additions and 1 deletions

View file

@ -6,7 +6,7 @@ BINDIR ?= $(PREFIX)/bin
DATADIR ?= $(PREFIX)/share
LIBEXECDIR ?= $(PREFIX)/libexec
.PHONY: build clean install check
.PHONY: build clean install check requires
.DEFAULT: build
GENERATED := $(patsubst %.in,%,$(wildcard sway/*.in sway/*/*.in ))
@ -47,3 +47,6 @@ check:
mkdir -p test
export WLR_BACKENDS=headless WLR_RENDERER=pixman XDG_RUNTIME_DIR="$(CURDIR)/test" SRCDIR="$(CURDIR)"; \
/usr/bin/sway --debug --validate --config $(CURDIR)/sway/config.test
requires: | build
@./scripts/requires.py sway/config