]> mj.ucw.cz Git - libucw.git/blob - debian/rules
Packages: We no longer need to install the obsolete ucw-daemon-helper.
[libucw.git] / debian / rules
1 #!/usr/bin/make -f
2 # debian/rules for LibUCW
3 # (c) 2013 Pavel Charvat <pchar@ucw.cz>
4
5 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 include obj/config.mk
9
10 build: build-stamp
11
12 build-stamp:
13         dh_testdir
14         $(MAKE)
15         #$(MAKE) tests
16         touch $@
17
18 clean:
19         dh_testdir
20         dh_testroot
21         rm -f build-stamp
22         -$(MAKE) clean
23         dh_clean
24
25 install: build
26         dh_testdir
27         dh_testroot
28         dh_clean -k
29         dh_installdirs
30         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw$(UCW_ABI_SUFFIX) install-libucw-lib
31         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-dev install-libucw-api
32         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-utils install-ucw-shell install-ucw-utils
33         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-doc install-libucw-docs install-libucw-config
34         install -d -m 755 $(CURDIR)/debian/libucw-doc/usr/share/doc/libucw/examples
35         cp -r examples/external $(CURDIR)/debian/libucw-doc/usr/share/doc/libucw/examples/program
36         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-charset$(UCW_ABI_SUFFIX) install-libucw-charset-lib
37         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-charset-dev install-libucw-charset-api
38         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-charset-utils install-libucw-charset-utils
39         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-xml$(UCW_ABI_SUFFIX) install-libucw-xml-lib
40         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-xml-dev install-libucw-xml-api
41         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-images$(UCW_ABI_SUFFIX) install-libucw-images-lib
42         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-images-dev install-libucw-images-api
43         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-images-utils install-libucw-images-utils
44
45 binary-indep: build install
46
47 binary-arch: build install
48         dh_testdir
49         dh_testroot
50         dh_installchangelogs
51         dh_installdocs
52 #       dh_installexamples
53 #       dh_install
54 #       dh_installmenu
55 #       dh_installdebconf
56 #       dh_installlogrotate
57 #       dh_installemacsen
58 #       dh_installpam
59 #       dh_installmime
60 #       dh_installcron
61 #       dh_installinfo
62 #       dh_installman
63 #       dh_link
64 #       dh_strip
65         dh_compress -Xusr/share/doc/libucw/
66         dh_fixperms
67 #       dh_perl
68 #       dh_python
69         dh_makeshlibs
70         dh_installdeb
71         dh_shlibdeps
72         dh_gencontrol
73         dh_md5sums
74         dh_builddeb
75
76 binary: binary-indep binary-arch
77 .PHONY: build clean binary-indep binary-arch binary install