]> git.cworth.org Git - notmuch/commitdiff
debian: use architecture.mk
authorDavid Bremner <david@tethera.net>
Sat, 26 Aug 2023 11:22:33 +0000 (08:22 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 26 Aug 2023 11:22:33 +0000 (08:22 -0300)
I plan to add further architecture dependent checks, which makes this
preferable to directly calling dpkg-architecture.

debian/rules

index f9196b82612001ee89a4a1d5753c29901c9ba9d2..dfcf2cc8bb6ed0368e8f713a58742975ee5e3ebc 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/make -f
+include /usr/share/dpkg/architecture.mk
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
@@ -7,7 +8,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 override_dh_auto_configure:
        BASHCMD=/bin/bash ./configure --prefix=/usr \
-               --libdir=/usr/lib/$$(dpkg-architecture -q DEB_TARGET_MULTIARCH) \
+               --libdir=/usr/lib/${DEB_TARGET_MULTIARCH} \
                --includedir=/usr/include \
                --mandir=/usr/share/man \
                --infodir=/usr/share/info \