Switch to dh(1).
[debian/teleschorsch.git] / debian / rules
index 842cfca2ae5b84ecc0bbcfa6d290684308f87946..94b464ff48cea61ca490993fe1f1bbe0f5a638fb 100755 (executable)
@@ -1,74 +1,14 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+%:
+       dh $@
 
-CFLAGS = -Wall -g
 
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-       CFLAGS += -O0
-else
-       CFLAGS += -O2
-endif
-
-configure: configure-stamp
-configure-stamp:
-       dh_testdir
+override_dh_auto_configure:
        lrelease qteleschorsch.pro
-       qmake
-       touch $@
+       dh_auto_configure
 
-build: build-stamp
-build-stamp: configure-stamp
-       dh_testdir
-       $(MAKE)
+override_dh_auto_build:
        convert -geometry 32x32 teleschorsch.png debian/teleschorsch32.xpm
        convert -geometry 16x16 teleschorsch.png debian/teleschorsch16.xpm
-       touch $@
-
-clean:
-       dh_testdir
-       dh_testroot
-       dh_clean debian/teleschorsch*.xpm *.qm configure-stamp build-stamp install-stamp
-       [ ! -f Makefile ] || $(MAKE) distclean
-
-install: install-stamp
-install-stamp: build-stamp
-       dh_testdir
-       dh_testroot
-       dh_clean -k
-       dh_installdirs
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs ChangeLog
-       dh_installdocs
-       dh_install
-       dh_installmenu
-       dh_desktop
-       dh_lintian
-       dh_installman teleschorsch.1
-       dh_link usr/share/man/man1/teleschorsch.1 usr/share/man/man1/qteleschorsch.1
-       dh_strip
-       dh_compress
-       dh_fixperms
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+       dh_auto_build