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>
10 ./autogen.sh --prefix=/usr
14 build-dbg: build-dbg-stamp
17 ./configure --prefix=/usr --enable-debug=yes
24 rm -f build-stamp build-dbg-stamp install-stamp install-dbg-stamp
25 # Add here commands to clean up after the build process.
28 find . -name '*.o' -o -name '_libs' -o -name '*.lo' -o -name '*.a' -o -name '.deps' | xargs rm -rf
34 rm -f build-stamp build-dbg-stamp install-stamp install-dbg-stamp
35 # Add here commands to clean up after the build process.
38 find . -name '*.o' -o -name '_libs' -o -name '*.lo' -o -name '*.a' -o -name '.deps' | xargs rm -rf
41 install: install-stamp
46 $(MAKE) prefix=`pwd`/debian/tmp/usr install
49 install-dbg: install-dbg-stamp
50 install-dbg-stamp: build-dbg
54 $(MAKE) prefix=`pwd`/debian/libglib-cvs-dbg/usr install
55 touch install-dbg-stamp
57 # Build architecture-independent files here.
59 # We have nothing to do by default.
61 # Build architecture-dependent files here.
62 binary-arch: build install libglib-cvs-dev libglib-cvs-1.1 libglib-cvs-dbg
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
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
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; \
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
123 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
125 binary: binary-indep binary-arch
126 .PHONY: build clean binary-indep binary-arch binary