#!/usr/bin/make -f include /usr/share/dpkg/architecture.mk ifeq ($(DEB_BUILD_ARCH),armhf) export DEB_CFLAGS_MAINT_APPEND = -D_FILE_OFFSET_BITS=64 endif ifeq ($(DEB_BUILD_ARCH),i386) export DEB_CFLAGS_MAINT_APPEND = -D_FILE_OFFSET_BITS=64 endif p := rshim %: dh $@ --without=single-binary override_dh_prep: dh_prep cp rshim.service debian/rshim.service override_dh_auto_install: dh_auto_install --destdir=debian/$(p) # Drop the language extension (.py) mv debian/$(p)/usr/sbin/fwpkg_unpack.py \ debian/$(p)/usr/sbin/fwpkg_unpack override_dh_auto_clean: dh_auto_clean rm -f debian/rshim.service