]> andersk Git - nss_nonlocal.git/blame - debian/rules
Remove the workaround for buggy CDBS $(CC) splitting (fixed upstream).
[nss_nonlocal.git] / debian / rules
CommitLineData
e9dcc028
AK
1#!/usr/bin/make -f
2
75b66003
AK
3DEB_AUTO_UPDATE_AUTOCONF = 2.50
4DEB_AUTO_UPDATE_AUTOHEADER = 2.50
5DEB_AUTO_UPDATE_AUTOMAKE = 1.9
6DEB_AUTO_UPDATE_ACLOCAL = 1.9
7DEB_AUTO_UPDATE_LIBTOOL = pre
8
e9dcc028 9include /usr/share/cdbs/1/rules/debhelper.mk
75b66003
AK
10include /usr/share/cdbs/1/class/autotools.mk
11
5f228bb5
AK
12DEB_DESTDIR = $(CURDIR)/debian/tmp/
13DEB_DH_INSTALL_SOURCEDIR = $(DEB_DESTDIR)
75b66003 14DEB_CONFIGURE_PREFIX = /
21ca49e1 15
3d60c2db 16IS_UBUNTU := $(if $(filter Ubuntu,$(shell lsb_release -is)),y)
21ca49e1 17LIBC6_VERSION := $(shell dpkg-query --showformat='$${Version}' --show libc6)
8e0165e3
AK
18libc6_ge = $(shell dpkg --compare-versions '$(LIBC6_VERSION)' ge '$(1)' && echo y)
19
3d60c2db 20ifeq ($(call libc6_ge,2.8+20080809),y)
21ca49e1
AK
21 DEB_DH_SHLIBDEPS_ARGS = -- -xglibc-private
22endif
75b66003
AK
23
24debian/stamp-autotools-files: DEB_AUTO_UPDATE_AUTOMAKE += --foreign --add-missing
25
26debian/stamp-autotools-files: aclocal.m4
27aclocal.m4:
28 touch $@
e9dcc028 29
5f228bb5
AK
30DEB_BUILDDIR = $(or $(DEB_BUILDDIR_$(cdbs_curpkg)),debian/build)
31
32REAL_DEB_HOST_GNU_TYPE := $(DEB_HOST_GNU_TYPE)
33
34DEB_BUILDDIR_lib32nss-nonlocal = debian/build_32
5f228bb5 35cleanbuilddir/lib32nss-nonlocal:: clean/lib32nss-nonlocal
8d95e772 36configure/lib32nss-nonlocal:: cdbs_crossbuild =
8e0165e3 37# i386_configure_target in eglibc/debian/sysdeps/amd64.mk
3d60c2db 38ifeq ($(or $(IS_UBUNTU),$(call libc6_ge,2.8+20080809)),y)
5f228bb5 39configure/lib32nss-nonlocal:: DEB_BUILD_GNU_TYPE = i686-linux
5f228bb5
AK
40else
41configure/lib32nss-nonlocal:: DEB_BUILD_GNU_TYPE = i486-linux
8e0165e3
AK
42endif
43# i386_CC in eglibc/debian/sysdeps/amd64.mk
44configure/lib32nss-nonlocal:: CC += -m32
45# i386_slibdir in eglibc/debian/sysdeps/amd64.mk
3d60c2db 46ifeq ($(or $(IS_UBUNTU),$(call libc6_ge,2.9-14~)),y)
8e0165e3 47configure/lib32nss-nonlocal:: DEB_CONFIGURE_EXTRA_FLAGS += --libdir="\$${prefix}/lib32"
516d0b5d 48binary-install/lib32nss-nonlocal:: DEB_DH_INSTALL_ARGS = 'lib32/*'
8e0165e3 49else
5f228bb5 50configure/lib32nss-nonlocal:: DEB_CONFIGURE_PREFIX = /emul/ia32-linux
516d0b5d 51binary-install/lib32nss-nonlocal:: DEB_DH_INSTALL_ARGS = 'emul/ia32-linux/lib/*'
5f228bb5
AK
52endif
53
54DEB_BUILDDIR_lib64nss-nonlocal = debian/build_64
8e0165e3 55cleanbuilddir/lib64nss-nonlocal:: clean/lib64nss-nonlocal
8d95e772 56configure/lib64nss-nonlocal:: cdbs_crossbuild =
8e0165e3 57# amd64_configure_target in eglibc/debian/sysdeps/i386.mk
5f228bb5 58configure/lib64nss-nonlocal:: DEB_BUILD_GNU_TYPE = x86_64-linux
8e0165e3 59# amd64_CC in eglibc/debian/sysdeps/i386.mk
5f228bb5 60configure/lib64nss-nonlocal:: CC += -m64 -D__x86_64__
8e0165e3 61# amd64_slibdir in eglibc/debian/sysdeps/i386.mk
5f228bb5
AK
62configure/lib64nss-nonlocal:: DEB_CONFIGURE_EXTRA_FLAGS += --libdir="\$${prefix}/lib64"
63
64configure/lib32nss-nonlocal configure/lib64nss-nonlocal::
65 $(DEB_CONFIGURE_INVOKE) $(cdbs_configure_flags) $(DEB_CONFIGURE_EXTRA_FLAGS) $(DEB_CONFIGURE_USER_FLAGS)
66
67build/lib32nss-nonlocal build/lib64nss-nonlocal::
68 +$(DEB_MAKE_INVOKE) $(DEB_MAKE_BUILD_TARGET)
69
70install/lib32nss-nonlocal install/lib64nss-nonlocal::
71 +$(DEB_MAKE_INVOKE) $(DEB_MAKE_INSTALL_TARGET)
72
73clean/lib32nss-nonlocal clean/lib64nss-nonlocal::
74 +-$(DEB_MAKE_INVOKE) -k $(DEB_MAKE_CLEAN_TARGET)
75
75b66003
AK
76clean::
77 rm -f aclocal.m4 config.guess config.sub install-sh ltmain.sh \
78 configure config.h.in missing depcomp Makefile.in
This page took 0.110041 seconds and 5 git commands to generate.