wayvnc/protocols/Makefile

27 lines
446 B
Makefile
Raw Normal View History

2019-10-06 15:27:56 +00:00
WAYLAND_SCANNER ?= wayland-scanner
PROTOCOLS := \
wlr-export-dmabuf-unstable-v1.xml \
wlr-screencopy-unstable-v1.xml \
2019-10-06 15:27:56 +00:00
SOURCES := $(PROTOCOLS:%.xml=build/%.c)
HEADERS := $(PROTOCOLS:%.xml=build/%.h)
all: $(SOURCES) $(HEADERS)
build:
mkdir -p build
build/%.c: %.xml | build
$(WAYLAND_SCANNER) private-code $< $@
build/%.h: %.xml | build
$(WAYLAND_SCANNER) client-header $< $@
.PHONY: clean
clean:
rm -rf build
.SUFFIXES:
.SECONDARY: