Move deprecated GRel to deprecated/
[platform/upstream/glib.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # debian/rules file for CVS glib1.1 Debian package
4 # based on glib+ debian/rules file
5 # written April 1998 by Ben Gertzfield <che@debian.org>
6
7 build: build-stamp
8 build-stamp:
9         dh_testdir
10         ./autogen.sh --prefix=/usr
11         $(MAKE)
12         touch build-stamp
13
14 build-dbg: build-dbg-stamp
15 build-dbg-stamp:
16         dh_testdir
17         ./configure --prefix=/usr --enable-debug=yes
18         $(MAKE)
19         touch build-dbg-stamp
20
21 clean:
22         dh_testdir
23         dh_testroot
24         rm -f build-stamp build-dbg-stamp install-stamp install-dbg-stamp
25         # Add here commands to clean up after the build process.
26         -$(MAKE) clean
27         -$(MAKE) distclean
28         find . -name '*.o' -o -name '_libs' -o -name '*.lo' -o -name '*.a' -o -name '.deps' | xargs rm -rf
29         dh_clean
30
31 clean-dbg:
32         dh_testdir
33         dh_testroot
34         rm -f build-stamp build-dbg-stamp install-stamp install-dbg-stamp
35         # Add here commands to clean up after the build process.
36         -$(MAKE) clean
37         -$(MAKE) distclean
38         find . -name '*.o' -o -name '_libs' -o -name '*.lo' -o -name '*.a' -o -name '.deps' | xargs rm -rf
39         dh_clean -k
40
41 install: install-stamp
42 install-stamp: build
43         dh_testdir
44         dh_testroot
45         dh_clean
46         $(MAKE) prefix=`pwd`/debian/tmp/usr install
47         touch install-stamp
48
49 install-dbg: install-dbg-stamp
50 install-dbg-stamp: build-dbg
51         dh_testdir
52         dh_testroot
53         dh_clean -k
54         $(MAKE) prefix=`pwd`/debian/libglib-cvs-dbg/usr install
55         touch install-dbg-stamp
56
57 # Build architecture-independent files here.
58 binary-indep: 
59 # We have nothing to do by default.
60
61 # Build architecture-dependent files here.
62 binary-arch: build install libglib-cvs-dev libglib-cvs-1.1 libglib-cvs-dbg
63
64 libglib-cvs-1.1: build
65         dh_testdir -plibglib-cvs-1.1 
66         dh_testroot -plibglib-cvs-1.1
67         dh_installdirs -plibglib-cvs-1.1
68         # Add here commands to install the files into debian/tmp
69         rm -rf debian/tmp/usr/bin debian/tmp/usr/include debian/tmp/usr/info debian/tmp/usr/lib/glib debian/tmp/usr/share debian/tmp/usr/man debian/tmp/usr/lib/*.la
70         dh_installdocs -plibglib-cvs-1.1
71         dh_installchangelogs -plibglib-cvs-1.1
72         dh_strip -plibglib-cvs-1.1
73         dh_compress -plibglib-cvs-1.1
74         dh_fixperms -plibglib-cvs-1.1
75         dh_installdeb -plibglib-cvs-1.1
76         dh_shlibdeps -plibglib-cvs-1.1
77         dh_gencontrol -plibglib-cvs-1.1
78         dh_makeshlibs -plibglib-cvs-1.1 -V 'libglib-cvs-1.1 (='`cat debian/version`')'
79         dh_md5sums -plibglib-cvs-1.1
80         dh_builddeb -plibglib-cvs-1.1
81
82 libglib-cvs-dev: build
83         dh_testdir -plibglib-cvs-dev
84         dh_testroot -plibglib-cvs-dev
85         dh_clean -plibglib-cvs-dev -k
86         dh_installdirs -plibglib-cvs-dev
87         # Add here commands to install the files into debian/tmp
88         dh_movefiles -plibglib-cvs-dev
89         cp glib-config debian/tmp/usr/bin
90         dh_installdocs -plibglib-cvs-dev 
91         dh_undocumented -plibglib-cvs-dev glib-config.1
92         dh_installchangelogs -plibglib-cvs-dev
93         dh_strip -plibglib-cvs-dev
94         dh_compress -plibglib-cvs-dev
95         dh_fixperms -plibglib-cvs-dev
96         dh_installdeb -plibglib-cvs-dev
97         dh_shlibdeps -plibglib-cvs-dev
98         dh_gencontrol -plibglib-cvs-dev
99         dh_md5sums -plibglib-cvs-dev
100         dh_builddeb -plibglib-cvs-dev
101
102 libglib-cvs-dbg: clean-dbg install-dbg
103         dh_testdir -plibglib-cvs-dbg
104         dh_testroot -plibglib-cvs-dbg
105         dh_installdirs -plibglib-cvs-dbg
106         # Add here commands to install the files into debian/libglib-cvs-dbg
107         rm -rf debian/libglib-cvs-dbg/usr/bin debian/libglib-cvs-dbg/usr/include debian/libglib-cvs-dbg/usr/info debian/libglib-cvs-dbg/usr/lib/glib debian/libglib-cvs-dbg/usr/man debian/libglib-cvs-dbg/usr/share debian/libglib-cvs-dbg/usr/lib/*.{la,so*}
108         for file in `find debian/libglib-cvs-dbg/usr/lib -name '*.a'` ; do \
109           mv $$file debian/libglib-cvs-dbg/usr/lib/`basename $$file .a`_g.a; \
110         done
111         dh_installdocs -plibglib-cvs-dbg
112         dh_installchangelogs -plibglib-cvs-dbg
113         dh_compress -plibglib-cvs-dbg
114         dh_fixperms -plibglib-cvs-dbg
115         dh_installdeb -plibglib-cvs-dbg
116         dh_shlibdeps -plibglib-cvs-dbg
117         dh_gencontrol -plibglib-cvs-dbg
118         dh_makeshlibs -plibglib-cvs-dbg -V
119         dh_md5sums -plibglib-cvs-dbg
120         dh_builddeb -plibglib-cvs-dbg
121
122 source diff:                                                                  
123         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
124
125 binary: binary-indep binary-arch
126 .PHONY: build clean binary-indep binary-arch binary