imported version 0.1-3
[birthday] / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # This file was originally written by Joey Hess and Craig Small.
4
5 #export DH_VERBOSE=1
6
7
8 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
9 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
10
11
12 CFLAGS = -Wall -g
13
14 DESTDIR = $(CURDIR)/debian/birthday
15
16 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17         CFLAGS += -O0
18 else
19         CFLAGS += -O2
20 endif
21
22 configure: configure-stamp
23 configure-stamp:
24         dh_testdir
25
26         ./autogen.sh
27         ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr
28
29         touch $@
30
31 build: build-stamp
32
33 build-stamp: configure-stamp
34         dh_testdir
35
36         $(MAKE)
37
38         touch $@
39
40 clean:
41         dh_testdir
42         dh_testroot
43
44         rm -f build-stamp configure-stamp
45
46         [ ! -f Makefile ] || $(MAKE) distclean
47         rm -f Makefile.in aclocal.m4 compile config.guess config.h.in config.sub configure data/Makefile.in depcomp install-sh intltool-extract.in intltool-merge.in intltool-update.in ltmain.sh missing mkinstalldirs po/Makefile.in.in src/Makefile.in
48
49         dh_clean 
50
51 install: build
52         dh_testdir
53         dh_testroot
54         dh_clean -k 
55         dh_installdirs
56
57         $(MAKE) DESTDIR=$(DESTDIR) install
58         find $(DESTDIR) -name "*.la" | xargs rm -f
59
60 binary-arch: build install
61         dh_testdir
62         dh_testroot
63         dh_installchangelogs
64         dh_installdocs
65         dh_link
66         dh_strip
67         dh_compress
68         dh_fixperms
69         dh_installdeb
70         dh_shlibdeps
71         dh_gencontrol
72         maemo-optify
73         dh_md5sums
74         dh_builddeb
75
76 binary: binary-arch
77 .PHONY: build clean binary-arch binary install configure