# at the beginning ifeq ($(shell dpkg --print-architecture),armel) ARCH := armel else ARCH := i386 endif #some code later on binary-indep: #targets #some code here if [$ARCH == i386]; then maemo-optify; fi #more code here binary-arch: #targets #some code here if [$ARCH == armel]; then maemo-optify; fi #more code here