upgrade for xorg-server 1.12.99.905 (for 1.13 RC)
[framework/uifw/xorg/proto/x11proto-dri2.git] / debian / rules
1 #!/usr/bin/make -f
2 # debian/rules for the Debian x11proto-dri2 package.
3 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>
4 # Copyright © 2005 Daniel Stone <daniel@fooishbar.org>
5 # Copyright © 2005 David Nusinow <dnusinow@debian.org>
6
7 # Uncomment this to turn on verbose mode.
8 #export DH_VERBOSE=1
9
10 PACKAGE = x11proto-dri2-dev
11
12 .PHONY: autogen
13 autogen: autogen-stamp
14 autogen-stamp:
15         dh_testdir
16
17         autoreconf -vfi
18         touch autogen-stamp
19
20 .PHONY: configure
21 configure: configure-stamp
22 configure-stamp: autogen-stamp
23         dh_testdir
24
25         test -d obj-$(DEB_BUILD_GNU_TYPE) || mkdir obj-$(DEB_BUILD_GNU_TYPE)
26         cd obj-$(DEB_BUILD_GNU_TYPE) && \
27         ../configure --prefix=/usr --mandir=\$${prefix}/share/man \
28                      --infodir=\$${prefix}/share/info --disable-shared \
29                      $(confflags) CFLAGS="$(CFLAGS)" 
30         touch configure-stamp
31
32 build: build-stamp
33 build-stamp: configure-stamp
34         dh_testdir
35
36         cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE)
37
38         touch build-stamp
39
40 clean:
41         dh_testdir
42         dh_testroot
43         rm -f *-stamp
44
45         rm -f config.cache config.log config.status config.guess config.sub
46         rm -f */config.cache */config.log */config.status */config.guess */config.sub
47         rm -f conftest* */conftest*
48         rm -rf autom4te.cache */autom4te.cache
49         rm -rf obj-*
50         rm -f aclocal.m4 configure install-sh missing
51         rm -f Makefile.in
52
53         dh_clean
54
55 install: build
56         dh_testdir
57         dh_testroot
58         dh_clean -k
59         dh_installdirs
60
61         cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
62
63 # Build architecture-independent files here.
64 binary-indep: build install
65         dh_testdir
66         dh_testroot
67
68 #       dh_installdocs dri2proto.txt
69 #       dh_installman
70         dh_install --sourcedir=debian/tmp --list-missing
71 #       dh_installchangelogs
72         dh_link
73         dh_strip
74         dh_compress
75         dh_fixperms
76         dh_installdeb
77         dh_shlibdeps
78         dh_gencontrol
79         dh_md5sums
80         dh_builddeb
81
82 # Build architecture-dependent files here.
83 binary-arch: build install
84 # Nothing to do
85
86 binary: binary-indep binary-arch
87 .PHONY: build clean binary-indep binary-arch binary install