X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=blobdiff_plain;f=debian%2Frules;h=04f7738a80b319a32caed953bfd45607fbd55ce8;hp=fc9cd6588f58f11bd6f8e30a2f0ea8cb7435d6e4;hb=2c2410df29dc7a2e5c9d9574e9bbc8b4890385a1;hpb=ffdb0fccc7424addab0eed1982a4a61ce2e3155d diff --git a/debian/rules b/debian/rules index fc9cd65..04f7738 100755 --- a/debian/rules +++ b/debian/rules @@ -9,8 +9,15 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +ifeq ($(DEB_HOST_ARCH),armel) + #EXTRA_CFLAGS += -mcpu=arm1136jf-s + # Use Thumb for smaller binaries if requested + ifneq (,$(filter thumb,$(DEB_BUILD_OPTIONS))) + EXTRA_CFLAGS += -mthumb + endif +endif - +EXTRA_CPPFLAGS = -DFREMANTLE configure: configure-stamp configure-stamp: @@ -22,8 +29,8 @@ build: build-stamp build-stamp: configure-stamp dh_testdir - make - make -C config-ui + make EXTRA_CFLAGS="$(EXTRA_CFLAGS)" EXTRA_CPPFLAGS="$(EXTRA_CPPFLAGS)" + make -C config-ui EXTRA_CFLAGS="$(EXTRA_CFLAGS)" EXTRA_CPPFLAGS="$(EXTRA_CPPFLAGS)" touch $@ @@ -32,6 +39,9 @@ clean: dh_testroot rm -f build-stamp configure-stamp + make clean + make -C config-ui clean + dh_clean install: build @@ -42,8 +52,9 @@ install: build # Add here commands to install the package into # debian/browser-switchboard. - make install - make -C config-ui install + make DESTDIR=debian/browser-switchboard install + make -C config-ui DESTDIR=../debian/browser-switchboard install + install -c -m 0644 debian/browser-switchboard-cp.desktop debian/browser-switchboard/usr/share/applications/hildon-control-panel binary-indep: build install