1 | #!/usr/bin/make -f |
---|
2 | |
---|
3 | DEB_AUTO_UPDATE_AUTOCONF = 2.50 |
---|
4 | DEB_AUTO_UPDATE_AUTOHEADER = 2.50 |
---|
5 | DEB_AUTO_UPDATE_AUTOMAKE = 1.9 |
---|
6 | DEB_AUTO_UPDATE_ACLOCAL = 1.9 |
---|
7 | DEB_AUTO_UPDATE_LIBTOOL = pre |
---|
8 | |
---|
9 | include /usr/share/cdbs/1/rules/debhelper.mk |
---|
10 | include /usr/share/cdbs/1/class/autotools.mk |
---|
11 | |
---|
12 | DEB_DESTDIR = $(CURDIR)/debian/tmp/ |
---|
13 | DEB_DH_INSTALL_SOURCEDIR = $(DEB_DESTDIR) |
---|
14 | DEB_CONFIGURE_PREFIX = / |
---|
15 | |
---|
16 | LIBC6_VERSION := $(shell dpkg-query --showformat='$${Version}' --show libc6) |
---|
17 | ifeq ($(shell dpkg --compare-versions '$(LIBC6_VERSION)' '>=' '2.8+20080809' && echo y),y) |
---|
18 | DEB_DH_SHLIBDEPS_ARGS = -- -xglibc-private |
---|
19 | endif |
---|
20 | |
---|
21 | debian/stamp-autotools-files: DEB_AUTO_UPDATE_AUTOMAKE += --foreign --add-missing |
---|
22 | |
---|
23 | debian/stamp-autotools-files: aclocal.m4 |
---|
24 | aclocal.m4: |
---|
25 | touch $@ |
---|
26 | |
---|
27 | DEB_BUILDDIR = $(or $(DEB_BUILDDIR_$(cdbs_curpkg)),debian/build) |
---|
28 | |
---|
29 | REAL_DEB_HOST_GNU_TYPE := $(DEB_HOST_GNU_TYPE) |
---|
30 | |
---|
31 | DEB_BUILDDIR_lib32nss-nonlocal = debian/build_32 |
---|
32 | configure/lib32nss-nonlocal:: CC += -m32 |
---|
33 | cleanbuilddir/lib32nss-nonlocal:: clean/lib32nss-nonlocal |
---|
34 | ifeq ($(shell lsb_release -is), Ubuntu) |
---|
35 | configure/lib32nss-nonlocal:: DEB_BUILD_GNU_TYPE = i686-linux |
---|
36 | configure/lib32nss-nonlocal:: DEB_CONFIGURE_EXTRA_FLAGS += --libdir="\$${prefix}/lib32" |
---|
37 | else |
---|
38 | configure/lib32nss-nonlocal:: DEB_BUILD_GNU_TYPE = i486-linux |
---|
39 | configure/lib32nss-nonlocal:: DEB_CONFIGURE_PREFIX = /emul/ia32-linux |
---|
40 | endif |
---|
41 | |
---|
42 | DEB_BUILDDIR_lib64nss-nonlocal = debian/build_64 |
---|
43 | configure/lib64nss-nonlocal:: DEB_BUILD_GNU_TYPE = x86_64-linux |
---|
44 | configure/lib64nss-nonlocal:: CC += -m64 -D__x86_64__ |
---|
45 | cleanbuilddir/lib64nss-nonlocal:: clean/lib64nss-nonlocal |
---|
46 | configure/lib64nss-nonlocal:: DEB_CONFIGURE_EXTRA_FLAGS += --libdir="\$${prefix}/lib64" |
---|
47 | |
---|
48 | configure/lib32nss-nonlocal configure/lib64nss-nonlocal:: |
---|
49 | $(DEB_CONFIGURE_INVOKE) $(cdbs_configure_flags) $(DEB_CONFIGURE_EXTRA_FLAGS) $(DEB_CONFIGURE_USER_FLAGS) |
---|
50 | |
---|
51 | build/lib32nss-nonlocal build/lib64nss-nonlocal:: |
---|
52 | +$(DEB_MAKE_INVOKE) $(DEB_MAKE_BUILD_TARGET) |
---|
53 | |
---|
54 | install/lib32nss-nonlocal install/lib64nss-nonlocal:: |
---|
55 | +$(DEB_MAKE_INVOKE) $(DEB_MAKE_INSTALL_TARGET) |
---|
56 | |
---|
57 | clean/lib32nss-nonlocal clean/lib64nss-nonlocal:: |
---|
58 | +-$(DEB_MAKE_INVOKE) -k $(DEB_MAKE_CLEAN_TARGET) |
---|
59 | |
---|
60 | clean:: |
---|
61 | rm -f aclocal.m4 config.guess config.sub install-sh ltmain.sh \ |
---|
62 | configure config.h.in missing depcomp Makefile.in |
---|