]> iEval git - gtk-theme-switch.git/commitdiff
Update to dh rules
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 13 Jul 2013 13:58:41 +0000 (16:58 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 13 Jul 2013 13:58:41 +0000 (16:58 +0300)
debian/gtk-theme-switch.install [new file with mode: 0644]
debian/gtk-theme-switch.manpages [new file with mode: 0644]
debian/rules

diff --git a/debian/gtk-theme-switch.install b/debian/gtk-theme-switch.install
new file mode 100644 (file)
index 0000000..061b169
--- /dev/null
@@ -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 (file)
index 0000000..ae2a738
--- /dev/null
@@ -0,0 +1 @@
+gtk-theme-switch2.1
index 294285f033f981884076d5d290de608574e38169..9f8cdc2bdd2ea83df9a5a53116df82759fa0492d 100755 (executable)
@@ -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
This page took 0.028598 seconds and 4 git commands to generate.