Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/architecture.mk
4
5 extra_meson_args =
6 ifneq ($(DEB_HOST_ARCH_OS),linux)
7 extra_meson_args+="-Denable-wayland=false"
8 endif
9
10 # We need to point to xkb-data's files. The default should be OK but
11 # let's be cautious:
12 override_dh_auto_configure:
13 dh_auto_configure -- -Dxkb-config-root=/usr/share/X11/xkb \
14 -Denable-docs=true \
15 $(extra_meson_args)
16
17 # Kill *.la files, and forget no-one:
18 override_dh_install:
19 find debian/tmp -name '*.la' -delete
20 find debian/tmp -name '*.md5' -delete
21 dh_install
22
23 override_dh_missing:
24 dh_missing --fail-missing
25
26 override_dh_makeshlibs:
27 dh_makeshlibs -- -c4
28
29 %:
30 dh $@
31
32
33 # For maintainer use only, generate a tarball
34 gentarball: SOURCE=$(shell dpkg-parsechangelog|awk '/^Source:/ {print $$2}')
35 gentarball: UV=$(shell dpkg-parsechangelog|awk '/^Version:/ {print $$2}'|sed 's/-.*$$//')
36 gentarball:
37 git archive --format=tar upstream-unstable --prefix=$(SOURCE)-$(UV)/ | gzip -9 > ../$(SOURCE)_$(UV).orig.tar.gz