4e4b7f000ca5f6a9cbd7256ba6f3961b26061ecc
[debian/teleschorsch.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 CFLAGS = -Wall -g
13
14 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
15         CFLAGS += -O0
16 else
17         CFLAGS += -O2
18 endif
19
20 configure: configure-stamp
21 configure-stamp:
22         dh_testdir
23         qmake
24         touch configure-stamp
25
26
27 build: build-stamp
28
29 build-stamp: configure-stamp 
30         dh_testdir
31         $(MAKE)
32         convert -geometry 32x32 teleschorsch.png debian/teleschorsch32.xpm
33         convert -geometry 16x16 teleschorsch.png debian/teleschorsch16.xpm
34         touch $@
35
36 clean:
37         dh_testdir
38         dh_testroot
39         rm -f build-stamp configure-stamp
40         [ ! -f Makefile ] || $(MAKE) distclean
41         dh_clean debian/teleschorsch*.xpm
42
43 install: build
44         dh_testdir
45         dh_testroot
46         dh_clean -k 
47         dh_installdirs
48
49 # Build architecture-independent files here.
50 binary-indep: build install
51 # We have nothing to do by default.
52
53 # Build architecture-dependent files here.
54 binary-arch: build install
55         dh_testdir
56         dh_testroot
57         dh_installchangelogs ChangeLog
58         dh_installdocs
59 #       dh_installexamples
60         dh_install
61         dh_installmenu
62         dh_desktop
63 #       dh_installdebconf       
64 #       dh_installlogrotate
65 #       dh_installemacsen
66 #       dh_installpam
67 #       dh_installmime
68 #       dh_python
69 #       dh_installinit
70 #       dh_installcron
71 #       dh_installinfo
72         dh_installman teleschorsch.1
73         dh_link usr/share/man/man1/teleschorsch.1 usr/share/man/man1/qteleschorsch.1
74         dh_strip
75         dh_compress
76         dh_fixperms
77 #       dh_perl
78 #       dh_makeshlibs
79         dh_installdeb
80         dh_shlibdeps
81         dh_gencontrol
82         dh_md5sums
83         dh_builddeb
84
85 binary: binary-indep binary-arch
86 .PHONY: build clean binary-indep binary-arch binary install configure