diff options
author | Stefano Karapetsas <[email protected]> | 2011-11-22 01:34:17 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2011-11-22 01:34:17 +0100 |
commit | ee1b0cc3814f5e54cadde518130b019f048b3be2 (patch) | |
tree | ee154caccb8cf50c0a3bd5d87e2a55d47eee0664 /debian/rules | |
parent | 7ddd3ee1fa7a73057c9fa4badfeb769347d1eb32 (diff) | |
download | mate-sensors-applet-ee1b0cc3814f5e54cadde518130b019f048b3be2.tar.bz2 mate-sensors-applet-ee1b0cc3814f5e54cadde518130b019f048b3be2.tar.xz |
added debian folder
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..975ae04 --- /dev/null +++ b/debian/rules @@ -0,0 +1,59 @@ +#!/usr/bin/make -f + +# prevent 'installed' schemas from being registered on the build machine +export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL := 1 + +# detect cross-compiling and configure build appropriately +export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + confflags := --build=$(DEB_HOST_GNU_TYPE) +else + confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) +endif + +# standard install directories +confflags += --prefix=/usr +confflags += --libexecdir="\$${prefix}/lib/gnome-panel" + +# rebuild everything +confflags += --enable-maintainer-mode + +# one-time-build, don't waste time on dependency tracking +confflags += --disable-dependency-tracking + +# don't do scrollkeeper at build-time +confflags += --disable-scrollkeeper + +# remove un-necessary dependencies +confflags += LDFLAGS=-Wl,--as-needed + +clean_paths := \ + aclocal.m4 \ + config.guess \ + config.sub \ + configure \ + depcomp \ + INSTALL \ + install-sh \ + libtool \ + ltmain.sh \ + missing \ + mkinstalldirs + +clean_filenames := \ + Makefile.in + +%: + dh $@ + +override_dh_auto_clean: + dh_auto_clean + for path in $(clean_paths); do rm -f "$$path"; done + for filename in $(clean_filenames); do find -name "$$filename" -delete; done + +override_dh_auto_configure: + gnome-autogen.sh $(confflags) + +override_dh_makeshlibs: + dh_makeshlibs --exclude=/usr/lib/sensors-applet/plugins/ |