| #!/usr/bin/make -f |
| |
| # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* |
| DPKG_EXPORT_BUILDFLAGS = 1 |
| include /usr/share/dpkg/default.mk |
| |
| %: |
| dh $@ --with quilt --builddirectory=build/ |
| |
| override_dh_clean: |
| dh_clean |
| rm -rf __pycache__ \ |
| include \ |
| scripts/__pycache__ |
| |
| override_dh_auto_configure: |
| dh_auto_configure -- \ |
| -DCMAKE_BUILD_TYPE=Release \ |
| -DCMAKE_INSTALL_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \ |
| -DBUILD_TESTS=OFF \ |
| -DBUILD_WSI_MIR_SUPPORT=OFF |
| |
| override_dh_auto_install: |
| dh_auto_install --destdir=debian/tmp |
| |
| override_dh_missing: |
| dh_missing --fail-missing |
| |
| .PHONY: debian/control |
| debian/control: vk-api-vers = $(shell dpkg-parsechangelog -SVersion | sed 's/\.[^.]*-.*$$//') |
| debian/control: |
| sed -e 's/__VKAPIVERSION__/$(vk-api-vers)/g' \ |
| < debian/control.in > debian/control |
| |
| gentarball: SOURCE = $(shell dpkg-parsechangelog -SSource) |
| gentarball: UV=$(shell dpkg-parsechangelog -SVersion |sed 's/-.*$$//') |
| gentarball: |
| tar --transform 's,^,$(SOURCE)-$(UV)/,' \ |
| --exclude 'debian' --exclude-vcs \ |
| -cJf ../$(SOURCE)_$(UV).orig.tar.xz . |