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>
7 # Uncomment this to turn on verbose mode.
10 PACKAGE = x11proto-dri2-dev
13 autogen: autogen-stamp
21 configure: configure-stamp
22 configure-stamp: autogen-stamp
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)"
33 build-stamp: configure-stamp
36 cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE)
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
50 rm -f aclocal.m4 configure install-sh missing
61 cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
63 # Build architecture-independent files here.
64 binary-indep: build install
68 # dh_installdocs dri2proto.txt
70 dh_install --sourcedir=debian/tmp --list-missing
71 # dh_installchangelogs
82 # Build architecture-dependent files here.
83 binary-arch: build install
86 binary: binary-indep binary-arch
87 .PHONY: build clean binary-indep binary-arch binary install