From: Marius Gavrilescu Date: Sat, 13 Jul 2013 13:58:41 +0000 (+0300) Subject: Update to dh rules X-Git-Tag: debian/2.1.0-3~12 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=b5178836a2e0422137aac1bcc80b1230ab2e0e5f;p=gtk-theme-switch.git Update to dh rules --- diff --git a/debian/gtk-theme-switch.install b/debian/gtk-theme-switch.install new file mode 100644 index 0000000..061b169 --- /dev/null +++ b/debian/gtk-theme-switch.install @@ -0,0 +1 @@ +gtk-theme-switch2 usr/bin diff --git a/debian/gtk-theme-switch.manpages b/debian/gtk-theme-switch.manpages new file mode 100644 index 0000000..ae2a738 --- /dev/null +++ b/debian/gtk-theme-switch.manpages @@ -0,0 +1 @@ +gtk-theme-switch2.1 diff --git a/debian/rules b/debian/rules index 294285f..9f8cdc2 100755 --- a/debian/rules +++ b/debian/rules @@ -1,58 +1,7 @@ #!/usr/bin/make -f -# debian/rules for gtk-theme-switch +%: + dh $@ +override_dh_auto_build: + make CFLAGS="$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get LDFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)" +override_dh_auto_install: -BDIR = debian/gtk-theme-switch - -export CFLAGS = -Wall -g $(OPTIMIZE) - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - OPTIMIZE = -O0 -else - OPTIMIZE = -O2 -endif - -build: build-stamp -build-stamp: - dh_testdir - $(MAKE) - touch build-stamp - -clean: - dh_testdir - dh_testroot - rm -f build-stamp gtk-theme-switch2 - dh_clean - -install: build - dh_testdir - dh_testroot - dh_prep - dh_installdirs usr/bin - install -m 755 gtk-theme-switch2 $(BDIR)/usr/bin - -binary-indep: -# Nothing to be done. - -binary-arch: build install - dh_testdir - dh_testroot - - dh_installmenu - dh_installdocs todo readme - dh_installchangelogs ChangeLog - - dh_installman gtk-theme-switch2.1 - dh_compress - - dh_link - dh_strip - dh_fixperms - - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-arch -.PHONY: build clean binary-arch binary install binary-indep