1 2 3 4 5 6 7 8 9
#!/usr/bin/make -f ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}') %: dh $* --with autoreconf override_dh_auto_configure: dh_auto_configure -- --with-perl-sitelib-dir=$(ARCHLIB)