1PREFIX=/usr 2DATADIR=$${datarootdir} 3DATAROOTDIR=$${prefix}/share 4 5unstable_protocols = \ 6 unstable/wlr-export-dmabuf-unstable-v1.xml \ 7 unstable/wlr-gamma-control-unstable-v1.xml \ 8 unstable/wlr-input-inhibitor-unstable-v1.xml \ 9 unstable/wlr-layer-shell-unstable-v1.xml \ 10 unstable/wlr-output-power-management-v1.xml \ 11 unstable/wlr-screencopy-unstable-v1.xml 12 13check: 14 ./check.sh 15 16clean: 17 rm -f wlr-protocols.pc 18 19wlr-protocols.pc: wlr-protocols.pc.in 20 sed \ 21 -e 's:@prefix@:$(PREFIX):g' \ 22 -e 's:@datadir@:$(DATADIR):g' \ 23 -e 's:@datarootdir@:$(DATAROOTDIR):g' \ 24 <$< >$@ 25 26install-unstable: $(unstable_protocols) 27 mkdir -p $(DESTDIR)$(PREFIX)/share/wlr-protocols/unstable 28 for protocol in $^ ; \ 29 do \ 30 install -Dm644 $$protocol \ 31 $(DESTDIR)$(PREFIX)/share/wlr-protocols/$$protocol ; \ 32 done 33 34install-pc: wlr-protocols.pc 35 mkdir -p $(DESTDIR)$(PREFIX)/share/pkgconfig/ 36 install -Dm644 wlr-protocols.pc \ 37 $(DESTDIR)$(PREFIX)/share/pkgconfig/wlr-protocols.pc 38 39install: install-unstable install-pc 40