Imported version 0.1
[cl-launcher] / 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/cl-launcher
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         install debian/cl-launcher.xsession \
66                 debian/cl-launcher/etc/X11/Xsession.post/22cl-launcher
67         dh_link
68         dh_strip
69         dh_compress
70         dh_fixperms
71         dh_installdeb
72         dh_shlibdeps
73         dh_gencontrol
74 #       maemo-optify
75         dh_md5sums
76         dh_builddeb
77
78 binary: binary-arch
79 .PHONY: build clean binary-arch binary install configure