Code

changelog: Mention that mpd is suggested (instead of recommended) now.
[pkg-ncmpc.git] / debian / rules
1 #!/usr/bin/make -f
2 # debian/rules for ncmpc
3 #
4 # Written by Sebastian Harl <sh@tokkee.org>
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
9 # These are used for cross-compiling and for saving the configure script
10 # from having to guess our platform (since we know it already)
11 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 CFLAGS = -Wall -g -I/usr/include/ncursesw
16 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17         CFLAGS += -O0
18 else
19         CFLAGS += -O2
20 endif
22 config.status: configure
23         dh_testdir
24         CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
25                         --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \
26                         --mandir=\$${prefix}/share/man \
27                         --enable-search-screen --enable-artist-screen
29 build: build-stamp
31 build-stamp: config.status
32         dh_testdir
33         
34         $(MAKE)
35         
36         touch build-stamp
38 clean:
39         dh_testdir
40         dh_testroot
41         rm -f build-stamp
42         
43         -$(MAKE) distclean
44         
45         dh_clean 
47 install: build
48         dh_testdir
49         dh_testroot
50         dh_clean -k 
51         dh_installdirs -a
52         
53         $(MAKE) install DESTDIR=$(CURDIR)/debian/ncmpc
54         
55         mkdir $(CURDIR)/debian/ncmpc/usr/share/doc/ncmpc/examples
56         mv $(CURDIR)/debian/ncmpc/usr/share/doc/ncmpc/*.sample \
57                 $(CURDIR)/debian/ncmpc/usr/share/doc/ncmpc/examples
58         mv $(CURDIR)/debian/ncmpc/usr/share/doc/ncmpc/ncmpc.lirc \
59                 $(CURDIR)/debian/ncmpc/usr/share/doc/ncmpc/examples
60         rm $(CURDIR)/debian/ncmpc/usr/share/doc/ncmpc/AUTHORS
61         
62 binary-indep:
63         # nothing to do here
65 binary-arch: build install
66         dh_testdir
67         dh_testroot
68         dh_installchangelogs -a ChangeLog
69         dh_installdocs -A -a NEWS README TODO
70         dh_installmenu -a
71         dh_link -a
72         dh_strip -a
73         dh_compress -a
74         dh_fixperms -a
75         dh_installdeb -a
76         dh_shlibdeps -a
77         dh_gencontrol -a
78         dh_md5sums -a
79         dh_builddeb -a
81 binary: binary-arch binary-indep
82 .PHONY: build clean binary-indep binary-arch binary install