2018-10-12 10:14:24 -04:00
|
|
|
PREFIX=/usr
|
|
|
|
|
DATADIR=$${datarootdir}
|
|
|
|
|
DATAROOTDIR=$${prefix}/share
|
|
|
|
|
|
|
|
|
|
unstable_protocols = \
|
2022-06-08 19:43:00 +02:00
|
|
|
unstable/wlr-data-control-unstable-v1.xml \
|
2018-10-12 10:14:24 -04:00
|
|
|
unstable/wlr-export-dmabuf-unstable-v1.xml \
|
2022-06-08 19:43:00 +02:00
|
|
|
unstable/wlr-foreign-toplevel-management-unstable-v1.xml \
|
2018-10-12 10:14:24 -04:00
|
|
|
unstable/wlr-gamma-control-unstable-v1.xml \
|
|
|
|
|
unstable/wlr-input-inhibitor-unstable-v1.xml \
|
|
|
|
|
unstable/wlr-layer-shell-unstable-v1.xml \
|
2022-06-08 19:43:00 +02:00
|
|
|
unstable/wlr-output-management-unstable-v1.xml \
|
2022-06-01 09:38:39 +02:00
|
|
|
unstable/wlr-output-power-management-unstable-v1.xml \
|
2022-06-08 19:43:00 +02:00
|
|
|
unstable/wlr-screencopy-unstable-v1.xml \
|
|
|
|
|
unstable/wlr-virtual-pointer-unstable-v1.xml
|
2018-10-12 10:14:24 -04:00
|
|
|
|
2022-06-01 09:39:10 +02:00
|
|
|
check: $(unstable_protocols)
|
|
|
|
|
./check.sh $(unstable_protocols)
|
2018-10-12 10:14:24 -04:00
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
rm -f wlr-protocols.pc
|
|
|
|
|
|
|
|
|
|
wlr-protocols.pc: wlr-protocols.pc.in
|
|
|
|
|
sed \
|
|
|
|
|
-e 's:@prefix@:$(PREFIX):g' \
|
|
|
|
|
-e 's:@datadir@:$(DATADIR):g' \
|
|
|
|
|
-e 's:@datarootdir@:$(DATAROOTDIR):g' \
|
|
|
|
|
<$< >$@
|
|
|
|
|
|
|
|
|
|
install-unstable: $(unstable_protocols)
|
|
|
|
|
mkdir -p $(DESTDIR)$(PREFIX)/share/wlr-protocols/unstable
|
|
|
|
|
for protocol in $^ ; \
|
|
|
|
|
do \
|
|
|
|
|
install -Dm644 $$protocol \
|
|
|
|
|
$(DESTDIR)$(PREFIX)/share/wlr-protocols/$$protocol ; \
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
install-pc: wlr-protocols.pc
|
|
|
|
|
mkdir -p $(DESTDIR)$(PREFIX)/share/pkgconfig/
|
|
|
|
|
install -Dm644 wlr-protocols.pc \
|
|
|
|
|
$(DESTDIR)$(PREFIX)/share/pkgconfig/wlr-protocols.pc
|
|
|
|
|
|
|
|
|
|
install: install-unstable install-pc
|