]> mj.ucw.cz Git - libucw.git/blob - debian/rules
29d800f231b89384d563baec32d7e423e1191f2c
[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_MAJOR) $(addprefix install-,libucw libucw-charset libucw-xml libucw-images)
31         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-dev $(addprefix install-,$(addsuffix -api,libucw libucw-charset libucw-xml libucw-images))
32         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-utils install-ucw-utils install-ucw-shell install-libucw-charset-utils install-libucw-images-utils
33         $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-doc install-libucw-docs
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         cp -r etc $(CURDIR)/debian/libucw-doc/usr/share/doc/libucw/examples/
37
38 binary-indep: build install
39
40 binary-arch: build install
41         dh_testdir
42         dh_testroot
43         dh_installchangelogs
44         dh_installdocs
45 #       dh_installexamples
46 #       dh_install
47 #       dh_installmenu
48 #       dh_installdebconf
49 #       dh_installlogrotate
50 #       dh_installemacsen
51 #       dh_installpam
52 #       dh_installmime
53 #       dh_installcron
54 #       dh_installinfo
55 #       dh_installman
56 #       dh_link
57 #       dh_strip
58         dh_compress -Xusr/share/doc/libucw/
59         dh_fixperms
60 #       dh_perl
61 #       dh_python
62         dh_makeshlibs
63         dh_installdeb
64         dh_shlibdeps
65         dh_gencontrol
66         dh_md5sums
67         dh_builddeb
68
69 binary: binary-indep binary-arch
70 .PHONY: build clean binary-indep binary-arch binary install