wayvnc/protocols/Makefile

26 lines
412 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 \
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: