Upload 1.3
[sbrightapplet] / 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 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
24         ./autogen.sh
25         ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --disable-static CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
26
27         touch $@
28
29 build: build-stamp
30
31 build-stamp: configure-stamp
32         dh_testdir
33
34         $(MAKE)
35
36         touch $@
37
38 clean:
39         dh_testdir
40         dh_testroot
41         rm -f build-stamp configure-stamp
42
43         -./antigen.sh
44
45         dh_clean 
46
47 install: build
48         dh_testdir
49         dh_testroot
50         dh_clean -k 
51         dh_installdirs
52
53         $(MAKE) DESTDIR=$(CURDIR)/debian/simple-brightness-applet install
54         find $(CURDIR)/debian/simple-brightness-applet -name "*.la" | xargs rm -f
55
56 binary-arch: build install
57         dh_testdir
58         dh_testroot
59         dh_installchangelogs
60         dh_installdocs
61         dh_link
62         dh_strip
63         dh_compress
64         dh_fixperms
65         dh_installdeb
66         dh_shlibdeps
67         dh_gencontrol
68         dh_md5sums
69         dh_builddeb
70
71 binary: binary-arch
72 .PHONY: build clean binary-arch binary install configure