2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
5
# Uncomment this to turn on verbose mode.
12
# These are used for cross-compiling and for saving the configure script
13
# from having to guess our platform (since we know it already)
14
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
15
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17
DTMPDIR=$(CURDIR)/debian/tmp
19
config.status: configure
22
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
23
--prefix=/usr --mandir=\$${prefix}/share/man \
24
--infodir=\$${prefix}/share/info
27
build-stamp: config.status
47
rm -rf debian/libgtkglext1-dev debian/libgtkglext1-doc debian/libgtkglext1
50
$(MAKE) install prefix=$(DTMPDIR)/usr
51
# mv $(DTMPDIR)/usr/lib/gtkglext-1.0/include/gdkglext-config.h \
52
# $(DTMPDIR)/usr/include/gtkglext-1.0
53
# rmdir -p --ignore-fail-on-non-empty $(DTMPDIR)/usr/lib/gtkglext-1.0/include
55
binary-indep: DH_OPTIONS=-i
56
binary-indep: build install
70
binary-arch: DH_OPTIONS=-a
71
binary-arch: build install
79
dh_installchangelogs ChangeLog
86
dh_shlibdeps -L libgtkglext$(SONAME) -ldebian/libgtkglext$(SONAME)/usr/lib
92
libtoolize --force --copy
96
rm -f debian/autofoo.version
97
for p in libtoolize aclocal automake autoconf ; do \
98
$$p --version | head -1 ; \
99
done > debian/autofoo.version
101
binary: binary-indep binary-arch
102
.PHONY: build clean binary-indep binary-arch binary install