]> mj.ucw.cz Git - libucw.git/blob - debian/rules
Released libucw-6.5
[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 ifdef CONFIG_DOC
34         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-doc install-libucw-docs install-libucw-man install-libucw-config
35         install -d -m 755 $(CURDIR)/debian/libucw-doc/usr/share/doc/libucw/examples
36         cp -r examples/external $(CURDIR)/debian/libucw-doc/usr/share/doc/libucw/examples/program
37 endif
38 ifdef CONFIG_CHARSET
39         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-charset$(UCW_ABI_SUFFIX) install-libucw-charset-lib
40         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-charset-dev install-libucw-charset-api
41         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-charset-utils install-libucw-charset-utils
42 endif
43 ifdef CONFIG_XML
44         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-xml$(UCW_ABI_SUFFIX) install-libucw-xml-lib
45         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-xml-dev install-libucw-xml-api
46 endif
47 ifdef CONFIG_JSON
48         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-json$(UCW_ABI_SUFFIX) install-libucw-json-lib
49         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-json-dev install-libucw-json-api
50 endif
51 ifdef CONFIG_IMAGES
52         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-images$(UCW_ABI_SUFFIX) install-libucw-images-lib
53         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-images-dev install-libucw-images-api
54         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-images-utils install-libucw-images-utils
55 endif
56
57 binary-indep: build install
58
59 binary-arch: build install
60         dh_testdir
61         dh_testroot
62         dh_installchangelogs
63         dh_installdocs
64 #       dh_installexamples
65 #       dh_install
66 #       dh_installmenu
67 #       dh_installdebconf
68 #       dh_installlogrotate
69 #       dh_installemacsen
70 #       dh_installpam
71 #       dh_installmime
72 #       dh_installcron
73 #       dh_installinfo
74 #       dh_installman
75 #       dh_link
76 #       dh_strip
77         dh_compress -Xusr/share/doc/libucw/
78         dh_fixperms
79 #       dh_perl
80 #       dh_python
81         dh_makeshlibs -V
82         dh_installdeb
83         dh_shlibdeps
84         dh_gencontrol
85         dh_md5sums
86         dh_builddeb
87
88 binary: binary-indep binary-arch
89 .PHONY: build clean binary-indep binary-arch binary install