From 4a8a146e4eb7aeac2126862a4ca27dab705360a9 Mon Sep 17 00:00:00 2001 From: Hideki Yamane Date: Fri, 27 Mar 2015 01:58:11 +0900 Subject: [PATCH] simplify rules --- debian/rules | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/debian/rules b/debian/rules index 8026117e..f558dcd1 100755 --- a/debian/rules +++ b/debian/rules @@ -7,7 +7,10 @@ LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) %: dh $@ -override_dh_auto_configure: configure_config +override_dh_auto_configure: + if [ $(shell uname -m) = 'x86_64' ]; then echo "1\n2\n" | ./configure; fi + if [ $(shell uname -m) = 'i686' ]; then echo "1\n1\n" | ./configure; fi + if [ $(shell uname -m) = 'armv6l' ]; then echo "1\n1\n" | ./configure; fi override_dh_auto_clean: rm -fr Makefile* usr bin tmp src/bin/BuiltHamcoreFiles @@ -16,9 +19,3 @@ override_dh_auto_install: patch -f < debian/makefile.patch mkdir -p usr/bin make install - -configure_config: - if [ $(shell uname -m) = 'x86_64' ]; then echo "1\n2\n" | ./configure; fi - if [ $(shell uname -m) = 'i686' ]; then echo "1\n1\n" | ./configure; fi - if [ $(shell uname -m) = 'armv6l' ]; then echo "1\n1\n" | ./configure; fi -