2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
5
# Uncomment this to turn on verbose mode.
8
# This is the debhelper compatability version to use.
11
# C compiler information
17
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
26
export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
27
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
29
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
30
confflags += --build $(DEB_HOST_GNU_TYPE)
32
confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
36
version=`ls libgpg-error/.libs/lib*.so.* | \
37
awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
38
major=`ls libgpg-error/.libs/lib*.so.* | \
39
awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
41
configure: configure-stamp
46
./configure $(confflags) --enable-maintainer-mode \
47
--prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
51
build: configure-stamp build-stamp
62
rm -f build-stamp configure-stamp
64
-test -r /usr/share/misc/config.sub && \
65
cp -f /usr/share/misc/config.sub config.sub
66
-test -r /usr/share/misc/config.guess && \
67
cp -f /usr/share/misc/config.guess config.guess
69
-if test -f ltmain.sh ; then touch ltmain.sh; else libtoolize -c; fi
70
-if test -f aclocal.m4 ; then touch aclocal.m4; else aclocal-1.8 -I m4 ; fi
71
-if test -f config.h.in ; then touch config.h.in; else autoheader2.50; fi
72
-if test -f Makefile.in ; then find . -name Makefile.in -exec touch {} \; ;\
73
else automake-1.8 --copy --add-missing; fi
75
-if test -f configure ; then touch configure; else autoconf2.50; fi
87
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/
91
binary-arch: build install
99
dh_installchangelogs ChangeLog
112
.PHONY: build clean binary-indep binary-arch binary install configure