Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 1 | #! /usr/bin/make -f |
| 2 | # -*- makefile -*- |
| 3 | # |
| 4 | # Invoke each target with `./debian/rules <target>'. All targets should be |
| 5 | # invoked with the package root as the current directory. |
| 6 | # |
| 7 | # The `binary' target must be run as root, as it needs to install files with |
| 8 | # specific ownerships. |
| 9 | |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 10 | -include debian/rules.custom |
| 11 | |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 12 | # be paranoid |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 13 | export LC_ALL ?= C |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 14 | |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 15 | # Allow distro-specific behaviour |
Theodore Ts'o | 686c4c1 | 2009-08-23 10:09:36 -0400 | [diff] [blame] | 16 | DISTRO :=$(shell sed -ne '/DISTRIB_ID/s/.*=//p' /etc/lsb-release 2>/dev/null || echo Debian) |
| 17 | SYS_BLKID_VER := $(shell dpkg-query -W libblkid1 | cut -f 2 | cut -b 1) |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 18 | ifeq ($(SYS_BLKID_VER),2) |
| 19 | UTIL_LINUX_NG ?= yes |
| 20 | endif |
| 21 | |
Theodore Ts'o | f85cc2a | 2003-07-26 00:48:08 -0400 | [diff] [blame] | 22 | # These are used for cross-compiling and for saving the configure script |
| 23 | # from having to guess our platform (since we know it already) |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 24 | DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) |
| 25 | DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) |
| 26 | DEB_HOST_OS ?= $(shell dpkg-architecture -qDEB_HOST_OS) |
| 27 | DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) |
| 28 | DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) |
| 29 | DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null) |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 30 | |
| 31 | # find the version for the main package, from changelog file |
Theodore Ts'o | 56eb4d4 | 2004-09-17 19:54:22 -0400 | [diff] [blame] | 32 | MAIN_VERSION = $(shell head -n 1 debian/changelog | cut '-d ' -f 2 | sed 's/[()]//g') |
Theodore Ts'o | e5b1643 | 2002-08-17 21:11:29 -0400 | [diff] [blame] | 33 | # find versions for libraries going into their own packages, from their Makefile.in's, |
| 34 | # and sonames for all libs |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 35 | COMERR_VERSION ?= $(shell grep ELF_VERSION lib/et/Makefile.in | cut '-d ' -f3) |
| 36 | COMERR_SOVERSION ?= $(shell grep ELF_SO_VERSION lib/et/Makefile.in | cut '-d ' -f3) |
| 37 | SS_VERSION ?= $(shell grep ELF_VERSION lib/ss/Makefile.in | cut '-d ' -f3) |
| 38 | SS_SOVERSION ?= $(shell grep ELF_SO_VERSION lib/ss/Makefile.in | cut '-d ' -f3) |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 39 | |
| 40 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 41 | UUID_VERSION ?= $(shell grep ELF_VERSION lib/uuid/Makefile.in | cut '-d ' -f3) |
| 42 | UUID_SOVERSION ?= $(shell grep ELF_SO_VERSION lib/uuid/Makefile.in | cut '-d ' -f3) |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 43 | |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 44 | BLKID_VERSION ?= $(shell grep ELF_VERSION lib/blkid/Makefile.in | cut '-d ' -f3) |
| 45 | BLKID_SOVERSION ?= $(shell grep ELF_SO_VERSION lib/blkid/Makefile.in | cut '-d ' -f3) |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 46 | endif |
| 47 | |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 48 | EXT2FS_SOVERSION ?= $(shell grep ELF_SO_VERSION lib/ext2fs/Makefile.in | cut '-d ' -f3) |
| 49 | E2P_SOVERSION ?= $(shell grep ELF_SO_VERSION lib/e2p/Makefile.in | cut '-d ' -f3) |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 50 | |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 51 | package ?= e2fsprogs |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 52 | |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 53 | topdir ?= $(shell pwd) |
| 54 | debdir ?= ${topdir}/debian |
| 55 | tmpdir ?= ${debdir}/tmp |
| 56 | udebdir ?= ${debdir}/e2fsprogs-udeb |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 57 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 58 | blkidudebdir ?= ${debdir}/libblkid1-udeb |
| 59 | uuidudebdir ?= ${debdir}/libuuid1-udeb |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 60 | endif |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 61 | libcomerrdir ?= ${debdir}/libcomerr${COMERR_SOVERSION} |
| 62 | comerrdevdir ?= ${debdir}/comerr-dev |
| 63 | libcomerrdbgdir ?= ${debdir}/libcomerr2-dbg |
| 64 | libssdir ?= ${debdir}/libss${SS_SOVERSION} |
| 65 | ssdevdir ?= ${debdir}/ss-dev |
| 66 | libssdbgdir ?= ${debdir}/libss2-dbg |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 67 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 68 | libblkiddir ?= ${debdir}/libblkid${BLKID_SOVERSION} |
| 69 | libblkiddevdir ?= ${debdir}/libblkid-dev |
| 70 | libblkiddbgdir ?= ${debdir}/libblkid1-dbg |
| 71 | libuuiddir ?= ${debdir}/libuuid${UUID_SOVERSION} |
| 72 | uuiddevdir ?= ${debdir}/uuid-dev |
| 73 | libuuiddbgdir ?= ${debdir}/libuuid1-dbg |
| 74 | uuidruntimedir ?= ${debdir}/uuid-runtime |
| 75 | uuidruntimedbgdir ?= ${debdir}/uuid-runtime-dbg |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 76 | endif |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 77 | libext2dir ?= ${debdir}/e2fslibs |
| 78 | libext2devdir ?= ${debdir}/e2fslibs-dev |
| 79 | libext2dbgdir ?= ${debdir}/e2fslibs-dbg |
| 80 | maindir ?= ${debdir}/e2fsprogs |
| 81 | e2fsckstaticdir ?= ${debdir}/e2fsck-static |
| 82 | debugdir ?= ${debdir}/e2fsprogs-dbg |
| 83 | stdbuilddir ?= ${debdir}/BUILD-STD |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 84 | staticbuilddir ?= ${debdir}/BUILD-STATIC |
| 85 | mipsbuilddir ?= ${debdir}/BUILD-MIPS |
| 86 | mipsbuilddir64 ?= ${debdir}/BUILD-MIPS-64 |
| 87 | # docdir ?= ${maindir}/usr/share/doc/${package} |
| 88 | MANDIR ?= /usr/share/man |
| 89 | mandir ?= ${tmpdir}${MANDIR} |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 90 | |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 91 | UDEB_NAME ?= $(package)-udeb_$(MAIN_VERSION)_$(DEB_HOST_ARCH).udeb |
| 92 | UDEB_PRIORITY ?= $(shell grep '^Package: e2fsprogs-udeb' debian/control.in -A 10 | grep ^Priority: | cut -d ' ' -f 2) |
Theodore Ts'o | dd198d6 | 2002-10-31 03:44:35 -0500 | [diff] [blame] | 93 | |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 94 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 95 | BLKID_UDEB_NAME ?= libblkid1-udeb_$(MAIN_VERSION)_$(DEB_HOST_ARCH).udeb |
| 96 | BLKID_UDEB_PRIORITY ?= $(shell grep '^Package: libblkid1-udeb' debian/control.in -A 10 | grep ^Priority: | cut -d ' ' -f 2) |
Theodore Ts'o | 417781a | 2003-04-10 00:18:56 -0400 | [diff] [blame] | 97 | |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 98 | UUID_UDEB_NAME ?= libuuid1-udeb_$(MAIN_VERSION)_$(DEB_HOST_ARCH).udeb |
| 99 | UUID_UDEB_PRIORITY ?= $(shell grep '^Package: libuuid1-udeb' debian/control.in -A 10 | grep ^Priority: | cut -d ' ' -f 2) |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 100 | endif |
Theodore Ts'o | e254d05 | 2003-12-07 01:57:04 -0500 | [diff] [blame] | 101 | |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 102 | STAMPSDIR ?= debian/stampdir |
| 103 | CFGSTDSTAMP ?= ${STAMPSDIR}/configure-std-stamp |
| 104 | CFGBFSTAMP ?= ${STAMPSDIR}/configure-bf-stamp |
| 105 | CFGSTATICSTAMP ?= ${STAMPSDIR}/configure-static-stamp |
| 106 | BUILDSTDSTAMP ?= ${STAMPSDIR}/build-std-stamp |
| 107 | BUILDBFSTAMP ?= ${STAMPSDIR}/build-bf-stamp |
| 108 | BUILDSTATICSTAMP ?=${STAMPSDIR}/build-static-stamp |
Theodore Ts'o | 541d173 | 2002-02-23 21:23:26 -0500 | [diff] [blame] | 109 | |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 110 | INSTALL ?= install |
| 111 | INSTALL_PROGRAM ?= $(INSTALL) -p -o root -g root -m 0755 |
Theodore Ts'o | 1893e71 | 2001-05-21 02:48:41 +0000 | [diff] [blame] | 112 | |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 113 | #ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
| 114 | #INSTALL_PROGRAM += -s |
| 115 | #endif |
Theodore Ts'o | 1893e71 | 2001-05-21 02:48:41 +0000 | [diff] [blame] | 116 | |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 117 | DEFAULT_CFLAGS ?= -g -O2 |
| 118 | DEFAULT_LDFLAGS ?= -Wl,-Bsymbolic-functions |
Theodore Ts'o | 910fae9 | 2012-02-15 18:29:37 -0500 | [diff] [blame] | 119 | |
Theodore Ts'o | 95decc5 | 2012-03-26 22:23:24 -0700 | [diff] [blame] | 120 | CFLAGS ?= $(shell if dpkg-buildflags > /dev/null 2>&1 ; then \ |
| 121 | dpkg-buildflags --get CFLAGS; else echo $(DEFAULT_CFLAGS) ; fi) |
| 122 | LDFLAGS ?= $(shell if dpkg-buildflags > /dev/null 2>&1 ; then \ |
| 123 | dpkg-buildflags --get LDFLAGS; else echo $(DEFAULT_LDFLAGS) ; fi) |
| 124 | CPPFLAGS ?= $(shell if dpkg-buildflags > /dev/null 2>&1 ; then \ |
| 125 | dpkg-buildflags --get CPPFLAGS; fi) |
Theodore Ts'o | 910fae9 | 2012-02-15 18:29:37 -0500 | [diff] [blame] | 126 | |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 127 | ifeq (${DEB_HOST_ARCH},alpha) |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 128 | CFLAGS += -DHAVE_NETINET_IN_H |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 129 | else |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 130 | CFLAGS += -D__NO_STRING_INLINES |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 131 | endif |
| 132 | |
Theodore Ts'o | fb8bcfc | 2012-03-26 21:44:11 -0700 | [diff] [blame] | 133 | ifneq (${DEB_HOST_ARCH_OS},linux) |
| 134 | SKIP_STATIC = yes |
| 135 | endif |
| 136 | |
| 137 | ifeq ($(SKIP_STATIC),yes) |
| 138 | BUILD_STATIC = |
| 139 | E2FSCK_STATIC = ${stdbuilddir}/e2fsck/e2fsck.static |
| 140 | else |
Theodore Ts'o | a827a2a | 2007-12-31 17:17:39 -0500 | [diff] [blame] | 141 | BUILD_STATIC = build-static |
| 142 | E2FSCK_STATIC = ${staticbuilddir}/e2fsck/e2fsck.static |
Samuel Thibault | 3e41608 | 2007-08-14 11:25:45 +0200 | [diff] [blame] | 143 | endif |
| 144 | |
Theodore Ts'o | be24178 | 2012-03-26 21:41:47 -0700 | [diff] [blame] | 145 | ifeq ($(SKIP_BF),yes) |
| 146 | BUILD_BF = |
| 147 | bfbuilddir ?= ${stdbuilddir} |
| 148 | else |
| 149 | BUILD_BF = build-bf |
| 150 | bfbuilddir ?= ${debdir}/BUILD-BF |
| 151 | endif |
| 152 | |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 153 | BF_CFLAGS = -Os -fomit-frame-pointer |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 154 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 155 | COMMON_CONF_FLAGS = --disable-e2initrd-helper --enable-elf-shlibs \ |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 156 | --enable-quota --infodir=/usr/share/info |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 157 | ifeq ($(UTIL_LINUX_NG),yes) |
| 158 | COMMON_CONF_FLAGS += --disable-fsck --disable-libblkid \ |
| 159 | --disable-libuuid --disable-uuidd |
| 160 | else |
| 161 | COMMON_CONF_FLAGS += --enable-fsck |
| 162 | endif |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 163 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 164 | ifneq ($(strip $(DEB_HOST_MULTIARCH)),) |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 165 | MULTIARCH_CONF ?= --with-multiarch=$(DEB_HOST_MULTIARCH) |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 166 | # This doesn't work yet because gdb and lintian don't expect and/or |
| 167 | # don't work with /usr/lib/<triplet>/debug |
| 168 | #USRLIB = /usr/lib/$(DEB_HOST_MULTIARCH) |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 169 | USRLIB ?= /usr/lib |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 170 | else |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 171 | USRLIB ?= /usr/lib |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 172 | endif |
| 173 | |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 174 | STD_CONF_FLAGS ?= --enable-symlink-install $(MULTIARCH_CONF) |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 175 | |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 176 | BF_CONF_FLAGS ?= --disable-nls --disable-imager --disable-testio-debug \ |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 177 | --disable-uuidd --disable-tls --disable-debugfs |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 178 | |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 179 | STATIC_CONF_FLAGS ?= --disable-nls --disable-imager \ |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 180 | --disable-uuidd --disable-tls |
Theodore Ts'o | a827a2a | 2007-12-31 17:17:39 -0500 | [diff] [blame] | 181 | |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 182 | MIPS_NOPIC_CONF_FLAGS ?= --disable-nls --disable-imager \ |
Theodore Ts'o | 61a679d | 2007-12-31 11:20:01 -0500 | [diff] [blame] | 183 | --disable-uuidd --disable-tls \ |
Theodore Ts'o | dd198d6 | 2002-10-31 03:44:35 -0500 | [diff] [blame] | 184 | --disable-resizer # --disable-debugfs |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 185 | |
Theodore Ts'o | 2a4c77b | 2002-09-24 01:30:00 -0400 | [diff] [blame] | 186 | # we can't use those flags at configure time |
Theodore Ts'o | d973c18 | 2012-03-26 17:37:10 -0700 | [diff] [blame] | 187 | MIPS_CFLAGS ?= -G 0 -fno-pic -mno-abicalls |
| 188 | MIPS_CFLAGS_64 ?= -mabi=64 -G 0 -fno-pic -mno-abicalls |
Theodore Ts'o | e5b1643 | 2002-08-17 21:11:29 -0400 | [diff] [blame] | 189 | |
| 190 | ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) |
| 191 | ifneq (,$(findstring $(DEB_BUILD_ARCH),mips mipsel)) |
| 192 | ismips=ismips |
| 193 | endif |
| 194 | endif |
| 195 | |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 196 | M4_ARGS= |
| 197 | ifeq ($(UTIL_LINUX_NG),yes) |
| 198 | M4_ARGS+=-DUTIL_LINUX_NG |
| 199 | else |
| 200 | M4_ARGS+=-UUTIL_LINUX_NG |
| 201 | endif |
| 202 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 203 | ifneq ($(strip $(DEB_HOST_MULTIARCH)),) |
| 204 | M4_ARGS+=-DDO_MULTIARCH |
| 205 | else |
| 206 | M4_ARGS+=-UDO_MULTIARCH |
| 207 | endif |
| 208 | |
Theodore Ts'o | 81d72f7 | 2012-03-26 16:31:06 -0700 | [diff] [blame] | 209 | ifneq ($(SKIP_DIETLIBC),) |
| 210 | M4_ARGS+=-UDIETLIBC |
| 211 | WITH_DIET_LIBC = |
| 212 | else |
| 213 | M4_ARGS+=-DDIETLIBC |
| 214 | WITH_DIET_LIBC = --with-diet-libc |
| 215 | endif |
| 216 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 217 | FILES_FIXUP= libcomerr2.files comerr-dev.files libss2.files ss-dev.files \ |
| 218 | libuuid1.files uuid-dev.files libblkid1.files libblkid-dev.files \ |
| 219 | e2fslibs.files e2fslibs-dev.files |
| 220 | |
Theodore Ts'o | e54e700 | 2010-06-03 11:50:42 -0400 | [diff] [blame] | 221 | debian-files: debian/control debian/e2fsprogs.shlibs.local |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 222 | ifeq ($(strip $(DEB_HOST_MULTIARCH)),) |
| 223 | for i in $(FILES_FIXUP); do \ |
| 224 | sed -e 's;lib/\*/;lib/;' debian/$$i.in > debian/$$i; \ |
| 225 | done |
| 226 | else |
| 227 | for i in $(FILES_FIXUP); do cp debian/$$i.in debian/$$i; done |
| 228 | endif |
Theodore Ts'o | e54e700 | 2010-06-03 11:50:42 -0400 | [diff] [blame] | 229 | |
| 230 | mrproper: clean |
| 231 | rm debian/control debian/e2fsprogs.shlibs.local |
| 232 | |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 233 | debian/control: debian/control.in debian/rules |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 234 | m4 $(M4_ARGS) < debian/control.in | grep -v ^REMOVE_ME$$ > $@ |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 235 | |
Theodore Ts'o | e54e700 | 2010-06-03 11:50:42 -0400 | [diff] [blame] | 236 | debian/e2fsprogs.shlibs.local: debian/e2fsprogs.shlibs.local.in |
| 237 | m4 $(M4_ARGS) < debian/e2fsprogs.shlibs.local.in > $@ |
| 238 | |
Theodore Ts'o | 541d173 | 2002-02-23 21:23:26 -0500 | [diff] [blame] | 239 | ${CFGSTDSTAMP}: |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 240 | dh_testdir |
Theodore Ts'o | 541d173 | 2002-02-23 21:23:26 -0500 | [diff] [blame] | 241 | |
Theodore Ts'o | 41b6ae6 | 2004-09-24 10:07:05 -0400 | [diff] [blame] | 242 | # Make sure we don't try to rebuild the configure scripts |
| 243 | find . -name configure | xargs touch |
| 244 | |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 245 | mkdir -p ${stdbuilddir} |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 246 | ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) |
Theodore Ts'o | be5a72d | 2005-03-17 01:16:34 -0500 | [diff] [blame] | 247 | cd ${stdbuilddir} && AWK=/usr/bin/awk \ |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 248 | ${topdir}/configure ${COMMON_CONF_FLAGS} ${STD_CONF_FLAGS} \ |
Theodore Ts'o | 910fae9 | 2012-02-15 18:29:37 -0500 | [diff] [blame] | 249 | CFLAGS="${CFLAGS}" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 250 | else |
Theodore Ts'o | be5a72d | 2005-03-17 01:16:34 -0500 | [diff] [blame] | 251 | cd ${stdbuilddir} && AWK=/usr/bin/awk CC="${DEB_HOST_GNU_TYPE}-gcc" \ |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 252 | ${topdir}/configure ${COMMON_CONF_FLAGS} ${STD_CONF_FLAGS} \ |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 253 | --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \ |
Theodore Ts'o | 910fae9 | 2012-02-15 18:29:37 -0500 | [diff] [blame] | 254 | CFLAGS="${CFLAGS}" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 255 | endif |
Theodore Ts'o | e5b1643 | 2002-08-17 21:11:29 -0400 | [diff] [blame] | 256 | |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 257 | # specially-built MIPS libs |
| 258 | ifneq ($(ismips),) |
| 259 | mkdir -p ${mipsbuilddir} ${mipsbuilddir64} |
| 260 | cd ${mipsbuilddir} && AWK=/usr/bin/awk \ |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 261 | ${topdir}/configure ${MIPS_NOPIC_CONF_FLAGS} \ |
| 262 | CFLAGS="${CFLAGS}" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 263 | cd ${mipsbuilddir64} && AWK=/usr/bin/awk \ |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 264 | ${topdir}/configure ${MIPS_NOPIC_CONF_FLAGS} \ |
| 265 | CFLAGS="${CFLAGS}" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 266 | endif |
Theodore Ts'o | e5b1643 | 2002-08-17 21:11:29 -0400 | [diff] [blame] | 267 | |
Theodore Ts'o | 541d173 | 2002-02-23 21:23:26 -0500 | [diff] [blame] | 268 | mkdir -p ${STAMPSDIR} |
| 269 | touch ${CFGSTDSTAMP} |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 270 | |
Theodore Ts'o | 541d173 | 2002-02-23 21:23:26 -0500 | [diff] [blame] | 271 | ${CFGBFSTAMP}: |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 272 | dh_testdir |
Theodore Ts'o | 541d173 | 2002-02-23 21:23:26 -0500 | [diff] [blame] | 273 | rm -f config.cache |
| 274 | |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 275 | mkdir -p ${bfbuilddir} |
| 276 | ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) |
Theodore Ts'o | be5a72d | 2005-03-17 01:16:34 -0500 | [diff] [blame] | 277 | cd ${bfbuilddir} && AWK=/usr/bin/awk \ |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 278 | ${topdir}/configure ${COMMON_CONF_FLAGS} ${BF_CONF_FLAGS} \ |
Theodore Ts'o | 910fae9 | 2012-02-15 18:29:37 -0500 | [diff] [blame] | 279 | CFLAGS="${CFLAGS} ${BF_CFLAGS}" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 280 | else |
Theodore Ts'o | be5a72d | 2005-03-17 01:16:34 -0500 | [diff] [blame] | 281 | cd ${bfbuilddir} && AWK=/usr/bin/awk CC="${DEB_HOST_GNU_TYPE}-gcc" \ |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 282 | ${topdir}/configure ${COMMON_CONF_FLAGS} ${BF_CONF_FLAGS} \ |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 283 | --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \ |
Theodore Ts'o | 910fae9 | 2012-02-15 18:29:37 -0500 | [diff] [blame] | 284 | CFLAGS="${CFLAGS}" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 285 | endif |
Theodore Ts'o | 541d173 | 2002-02-23 21:23:26 -0500 | [diff] [blame] | 286 | mkdir -p ${STAMPSDIR} |
| 287 | touch ${CFGBFSTAMP} |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 288 | |
Theodore Ts'o | a827a2a | 2007-12-31 17:17:39 -0500 | [diff] [blame] | 289 | ${CFGSTATICSTAMP}: |
| 290 | dh_testdir |
| 291 | rm -f config.cache |
| 292 | |
| 293 | mkdir -p ${staticbuilddir} |
| 294 | ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) |
Theodore Ts'o | 4f2e8f1 | 2008-01-27 17:20:44 -0500 | [diff] [blame] | 295 | if type diet > /dev/null 2>&1 ; then \ |
Theodore Ts'o | 3218dc9 | 2008-09-12 09:26:45 -0400 | [diff] [blame] | 296 | cd ${staticbuilddir} && AWK=/usr/bin/awk \ |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 297 | ${topdir}/configure ${STATIC_CONF_FLAGS} \ |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 298 | ${WITH_DIET_LIBC} CFLAGS="${CFLAGS}" \ |
| 299 | CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"; \ |
Theodore Ts'o | 3218dc9 | 2008-09-12 09:26:45 -0400 | [diff] [blame] | 300 | else \ |
| 301 | cd ${staticbuilddir} && AWK=/usr/bin/awk \ |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 302 | ${topdir}/configure ${STATIC_CONF_FLAGS} \ |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 303 | CFLAGS="${CFLAGS}" CPPFLAGS="$(CPPFLAGS)" \ |
| 304 | LDFLAGS="$(LDFLAGS)"; \ |
Theodore Ts'o | 4f2e8f1 | 2008-01-27 17:20:44 -0500 | [diff] [blame] | 305 | fi |
Theodore Ts'o | a827a2a | 2007-12-31 17:17:39 -0500 | [diff] [blame] | 306 | else |
| 307 | cd ${staticbuilddir} && AWK=/usr/bin/awk CC="${DEB_HOST_GNU_TYPE}-gcc" \ |
| 308 | ${topdir}/configure ${COMMON_CONF_FLAGS} ${STATIC_CONF_FLAGS} \ |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 309 | --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \ |
Theodore Ts'o | 910fae9 | 2012-02-15 18:29:37 -0500 | [diff] [blame] | 310 | CFLAGS="${CFLAGS}" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" |
Theodore Ts'o | a827a2a | 2007-12-31 17:17:39 -0500 | [diff] [blame] | 311 | endif |
| 312 | mkdir -p ${STAMPSDIR} |
| 313 | touch ${CFGSTATICSTAMP} |
| 314 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 315 | build-arch: build |
| 316 | build-indep: build |
Theodore Ts'o | be24178 | 2012-03-26 21:41:47 -0700 | [diff] [blame] | 317 | build: build-std $(BUILD_BF) $(BUILD_STATIC) |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 318 | |
Theodore Ts'o | 541d173 | 2002-02-23 21:23:26 -0500 | [diff] [blame] | 319 | build-std: ${BUILDSTDSTAMP} |
| 320 | ${BUILDSTDSTAMP}: ${CFGSTDSTAMP} |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 321 | dh_testdir |
Theodore Ts'o | f921eda | 2012-02-20 18:17:37 -0500 | [diff] [blame] | 322 | $(MAKE) -C ${stdbuilddir} V=1 all |
| 323 | $(MAKE) -C ${stdbuilddir}/e2fsck V=1 e2fsck.static |
| 324 | $(MAKE) -C ${stdbuilddir}/po V=1 update-gmo |
Theodore Ts'o | e5b1643 | 2002-08-17 21:11:29 -0400 | [diff] [blame] | 325 | |
Theodore Ts'o | f921eda | 2012-02-20 18:17:37 -0500 | [diff] [blame] | 326 | ( cd ${stdbuilddir}/doc && $(MAKE) V=1 libext2fs_abt.html ) |
| 327 | ( cd ${stdbuilddir}/lib/et && $(MAKE) V=1 com_err.info com_err_abt.html ) |
Theodore Ts'o | e5b1643 | 2002-08-17 21:11:29 -0400 | [diff] [blame] | 328 | |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 329 | # specially-built MIPS libs |
| 330 | ifneq ($(ismips),) |
Theodore Ts'o | f921eda | 2012-02-20 18:17:37 -0500 | [diff] [blame] | 331 | $(MAKE) -C ${mipsbuilddir}/util V=1 |
| 332 | $(MAKE) -C ${mipsbuilddir} V=1 \ |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 333 | CFLAGS="${CFLAGS} ${MIPS_CFLAGS}" \ |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 334 | LIB_SUBDIRS="lib/et lib/ext2fs" libs |
Theodore Ts'o | f921eda | 2012-02-20 18:17:37 -0500 | [diff] [blame] | 335 | $(MAKE) -C ${mipsbuilddir64}/util V=1 |
| 336 | $(MAKE) -C ${mipsbuilddir64} V=1 \ |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 337 | CFLAGS="${CFLAGS} ${MIPS_CFLAGS_64}" \ |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 338 | LIB_SUBDIRS="lib/et lib/ext2fs" libs |
| 339 | endif |
Theodore Ts'o | e5b1643 | 2002-08-17 21:11:29 -0400 | [diff] [blame] | 340 | |
Theodore Ts'o | 541d173 | 2002-02-23 21:23:26 -0500 | [diff] [blame] | 341 | touch ${BUILDSTDSTAMP} |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 342 | |
Theodore Ts'o | 541d173 | 2002-02-23 21:23:26 -0500 | [diff] [blame] | 343 | build-bf: ${BUILDBFSTAMP} |
| 344 | ${BUILDBFSTAMP}: ${CFGBFSTAMP} |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 345 | dh_testdir |
Theodore Ts'o | f921eda | 2012-02-20 18:17:37 -0500 | [diff] [blame] | 346 | $(MAKE) -C ${bfbuilddir} V=1 libs |
| 347 | $(MAKE) -C ${bfbuilddir}/e2fsck V=1 all |
| 348 | $(MAKE) -C ${bfbuilddir}/misc V=1 all |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 349 | $(MAKE) -C ${bfbuilddir}/resize V=1 all |
Theodore Ts'o | 541d173 | 2002-02-23 21:23:26 -0500 | [diff] [blame] | 350 | touch ${BUILDBFSTAMP} |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 351 | |
Theodore Ts'o | a827a2a | 2007-12-31 17:17:39 -0500 | [diff] [blame] | 352 | build-static: ${BUILDSTATICSTAMP} |
| 353 | ${BUILDSTATICSTAMP}: ${CFGSTATICSTAMP} |
| 354 | dh_testdir |
Theodore Ts'o | f921eda | 2012-02-20 18:17:37 -0500 | [diff] [blame] | 355 | $(MAKE) -C ${staticbuilddir} V=1 libs |
| 356 | $(MAKE) -C ${staticbuilddir}/e2fsck V=1 all e2fsck.static |
Theodore Ts'o | a827a2a | 2007-12-31 17:17:39 -0500 | [diff] [blame] | 357 | touch ${BUILDSTATICSTAMP} |
| 358 | |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 359 | clean: |
| 360 | dh_testdir |
Theodore Ts'o | 541d173 | 2002-02-23 21:23:26 -0500 | [diff] [blame] | 361 | rm -rf ${STAMPSDIR} |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 362 | [ ! -f ${stdbuilddir}/Makefile ] || $(MAKE) -C ${stdbuilddir} V=1 distclean |
| 363 | [ ! -f ${bfbuilddir}/Makefile ] || $(MAKE) -C ${bfbuilddir} V=1 distclean |
| 364 | [ ! -f ${staticbuilddir}/Makefile ] || $(MAKE) -C ${staticbuilddir} V=1 distclean |
Theodore Ts'o | a827a2a | 2007-12-31 17:17:39 -0500 | [diff] [blame] | 365 | rm -rf ${stdbuilddir} ${bfbuilddir} ${staticbuilddir} ${mipsbuilddir} ${mipsbuilddir64} |
Theodore Ts'o | 4534f8b | 2009-11-29 20:19:10 -0500 | [diff] [blame] | 366 | rm -f debian/*.substvars |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 367 | dh_clean |
| 368 | |
Theodore Ts'o | 62775dc | 2003-05-08 10:39:50 -0400 | [diff] [blame] | 369 | install: cleanup install-std |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 370 | |
| 371 | # This rule allows to factorize the dh_clean between the 2 install rules |
| 372 | # This must be launched before install-* (if launching them by hand, for |
| 373 | # exemple) or results are unpredictable |
| 374 | cleanup: |
Theodore Ts'o | b90b826 | 2001-06-15 22:54:34 +0000 | [diff] [blame] | 375 | dh_testdir |
| 376 | dh_testroot |
Theodore Ts'o | ef79713 | 2009-04-20 08:12:15 -0400 | [diff] [blame] | 377 | dh_prep |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 378 | |
| 379 | install-std: DH_OPTIONS= |
| 380 | install-std: build |
| 381 | dh_testdir |
| 382 | dh_testroot |
Theodore Ts'o | b90b826 | 2001-06-15 22:54:34 +0000 | [diff] [blame] | 383 | dh_installdirs |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 384 | |
Theodore Ts'o | b90b826 | 2001-06-15 22:54:34 +0000 | [diff] [blame] | 385 | mkdir -p ${tmpdir}/sbin |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 386 | $(MAKE) -C ${stdbuilddir} V=1 install DESTDIR=${tmpdir} \ |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 387 | INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true |
| 388 | # static libs and .h files |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 389 | $(MAKE) -C ${stdbuilddir} V=1 install-libs DESTDIR=${tmpdir} LDCONFIG=true |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 390 | |
Theodore Ts'o | 1893e71 | 2001-05-21 02:48:41 +0000 | [diff] [blame] | 391 | # statically-linked fsck |
Theodore Ts'o | a827a2a | 2007-12-31 17:17:39 -0500 | [diff] [blame] | 392 | ${INSTALL_PROGRAM} $(E2FSCK_STATIC) ${tmpdir}/sbin |
Theodore Ts'o | ec3bb41 | 2006-10-04 09:12:35 -0400 | [diff] [blame] | 393 | cp ${mandir}/man8/e2fsck.8 ${mandir}/man8/e2fsck.static.8 |
Theodore Ts'o | 8f9d708 | 2011-09-19 13:39:38 -0400 | [diff] [blame] | 394 | # remove static quota library for now |
| 395 | rm ${tmpdir}/usr/include/quota/mkquota.h |
| 396 | find ${tmpdir}/usr/lib -name quota.pc -o -name libquota.a | xargs rm |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 397 | |
Theodore Ts'o | b1c828e | 2011-09-28 23:12:45 -0400 | [diff] [blame] | 398 | ifeq ($(DEB_BUILD_GNU_SYSTEM), gnu) |
| 399 | ${INSTALL} -m 0644 misc/mke2fs-hurd.conf ${tmpdir}/etc/mke2fs.conf |
| 400 | endif |
| 401 | |
Theodore Ts'o | 2a4c77b | 2002-09-24 01:30:00 -0400 | [diff] [blame] | 402 | dh_movefiles |
Theodore Ts'o | 15fdc40 | 2010-05-26 11:01:06 -0400 | [diff] [blame] | 403 | test -z "`find ${tmpdir} -type f`" |
Theodore Ts'o | 2a4c77b | 2002-09-24 01:30:00 -0400 | [diff] [blame] | 404 | |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 405 | # specially-built MIPS libs |
| 406 | ifneq ($(ismips),) |
| 407 | $(INSTALL) -p -m 0644 ${mipsbuilddir}/lib/libext2fs.a \ |
| 408 | ${debdir}/e2fslibs-dev/usr/lib/libext2fs-nopic.a |
| 409 | $(INSTALL) -p -m 0644 ${mipsbuilddir64}/lib/libext2fs.a \ |
| 410 | ${debdir}/e2fslibs-dev/usr/lib/lib64ext2fs-nopic.a |
| 411 | endif |
Theodore Ts'o | e5b1643 | 2002-08-17 21:11:29 -0400 | [diff] [blame] | 412 | |
Theodore Ts'o | 62775dc | 2003-05-08 10:39:50 -0400 | [diff] [blame] | 413 | install-udeb: DH_OPTIONS= |
| 414 | install-udeb: build |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 415 | dh_testdir |
| 416 | dh_testroot |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 417 | |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 418 | $(MAKE) -C ${bfbuilddir} V=1 install-shlibs-libs-recursive DESTDIR=${udebdir} \ |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 419 | INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 420 | $(MAKE) -C ${bfbuilddir}/e2fsck V=1 install DESTDIR=${udebdir} \ |
Theodore Ts'o | 62775dc | 2003-05-08 10:39:50 -0400 | [diff] [blame] | 421 | INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 422 | $(MAKE) -C ${bfbuilddir}/misc V=1 install DESTDIR=${udebdir} \ |
Theodore Ts'o | 62775dc | 2003-05-08 10:39:50 -0400 | [diff] [blame] | 423 | INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 424 | $(MAKE) -C ${bfbuilddir}/resize V=1 install DESTDIR=${udebdir} \ |
Theodore Ts'o | 8a8a12c | 2005-12-10 22:56:21 -0500 | [diff] [blame] | 425 | INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 426 | |
Theodore Ts'o | 62775dc | 2003-05-08 10:39:50 -0400 | [diff] [blame] | 427 | rm -rf ${udebdir}/usr |
Theodore Ts'o | e3075ae | 2003-07-12 16:28:09 -0400 | [diff] [blame] | 428 | find ${udebdir}/sbin -type f -a ! -name e2fsck \ |
Theodore Ts'o | 8a8a12c | 2005-12-10 22:56:21 -0500 | [diff] [blame] | 429 | -a ! -name mke2fs -a ! -name tune2fs \ |
| 430 | -a ! -name resize2fs -a ! -name badblocks -print | xargs rm |
Theodore Ts'o | e3075ae | 2003-07-12 16:28:09 -0400 | [diff] [blame] | 431 | |
Theodore Ts'o | be24178 | 2012-03-26 21:41:47 -0700 | [diff] [blame] | 432 | (cd ${udebdir}/sbin; ln -sf e2fsck fsck.ext2 ; \ |
| 433 | ln -sf e2fsck fsck.ext3 ; ln -sf e2fsck fsck.ext4 ; \ |
| 434 | ln -sf mke2fs mkfs.ext2 ; ln -sf mke2fs mkfs.ext3 ; \ |
| 435 | ln -sf mke2fs mkfs.ext4) |
Theodore Ts'o | 2a4c77b | 2002-09-24 01:30:00 -0400 | [diff] [blame] | 436 | |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 437 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | 417781a | 2003-04-10 00:18:56 -0400 | [diff] [blame] | 438 | mkdir -p ${blkidudebdir}/lib |
| 439 | mv ${udebdir}/lib/libblkid.* ${blkidudebdir}/lib |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 440 | |
Theodore Ts'o | e254d05 | 2003-12-07 01:57:04 -0500 | [diff] [blame] | 441 | mkdir -p ${uuidudebdir}/lib |
| 442 | mv ${udebdir}/lib/libuuid.* ${uuidudebdir}/lib |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 443 | endif |
Theodore Ts'o | e254d05 | 2003-12-07 01:57:04 -0500 | [diff] [blame] | 444 | |
Theodore Ts'o | b90b826 | 2001-06-15 22:54:34 +0000 | [diff] [blame] | 445 | binary-indep: |
| 446 | # no arch-independant debs. |
| 447 | |
| 448 | binary-arch: DH_OPTIONS= -a |
Theodore Ts'o | dd198d6 | 2002-10-31 03:44:35 -0500 | [diff] [blame] | 449 | binary-arch: install install-udeb |
Theodore Ts'o | b90b826 | 2001-06-15 22:54:34 +0000 | [diff] [blame] | 450 | dh_testdir |
| 451 | dh_testroot |
| 452 | |
Theodore Ts'o | 541d173 | 2002-02-23 21:23:26 -0500 | [diff] [blame] | 453 | # lintian overrides |
| 454 | for i in $$(cd debian && echo *.lintian-overrides); do \ |
| 455 | pkg=$${i%.lintian-overrides} ;\ |
Theodore Ts'o | 636019e | 2011-10-01 00:08:12 -0400 | [diff] [blame] | 456 | if test "$${pkg}" != source ; then \ |
| 457 | $(INSTALL) -m 0644 -D -p debian/$$i ${debdir}/$${pkg}/usr/share/lintian/overrides/$${pkg} ;\ |
| 458 | fi ;\ |
Theodore Ts'o | 541d173 | 2002-02-23 21:23:26 -0500 | [diff] [blame] | 459 | done |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 460 | |
Theodore Ts'o | b90b826 | 2001-06-15 22:54:34 +0000 | [diff] [blame] | 461 | # symlinks to prepare dh_installdocs run |
Theodore Ts'o | b90b826 | 2001-06-15 22:54:34 +0000 | [diff] [blame] | 462 | |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 463 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | 6fe7d11 | 2003-03-16 19:58:25 -0500 | [diff] [blame] | 464 | mkdir -p ${debdir}/libblkid${BLKID_SOVERSION}/usr/share/doc/libblkid${BLKID_SOVERSION} |
| 465 | mkdir -p ${debdir}/libblkid-dev/usr/share/doc |
| 466 | ln -sf libblkid${BLKID_SOVERSION} ${debdir}/libblkid-dev/usr/share/doc/libblkid-dev |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 467 | endif |
Theodore Ts'o | 6fe7d11 | 2003-03-16 19:58:25 -0500 | [diff] [blame] | 468 | |
Theodore Ts'o | 151c86a | 2003-07-25 07:03:00 -0400 | [diff] [blame] | 469 | mkdir -p ${debdir}/libss${SS_SOVERSION}/usr/share/doc/libss${SS_SOVERSION} |
| 470 | mkdir -p ${debdir}/ss-dev/usr/share/doc |
| 471 | ln -sf libss${SS_SOVERSION} ${debdir}/ss-dev/usr/share/doc/ss-dev |
| 472 | |
| 473 | mkdir -p ${debdir}/libcomerr${COMERR_SOVERSION}/usr/share/doc/libcomerr${COMERR_SOVERSION} |
| 474 | mkdir -p ${debdir}/comerr-dev/usr/share/doc |
| 475 | ln -sf libcomerr${COMERR_SOVERSION} ${debdir}/comerr-dev/usr/share/doc/comerr-dev |
| 476 | |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 477 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | 151c86a | 2003-07-25 07:03:00 -0400 | [diff] [blame] | 478 | mkdir -p ${debdir}/libuuid${UUID_SOVERSION}/usr/share/doc/libuuid${UUID_SOVERSION} |
| 479 | mkdir -p ${debdir}/uuid-dev/usr/share/doc |
Theodore Ts'o | ec3bb41 | 2006-10-04 09:12:35 -0400 | [diff] [blame] | 480 | # ln -sf libuuid${UUID_SOVERSION} ${debdir}/uuid-dev/usr/share/doc/uuid-dev |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 481 | endif |
Theodore Ts'o | 151c86a | 2003-07-25 07:03:00 -0400 | [diff] [blame] | 482 | |
| 483 | mkdir -p ${debdir}/e2fslibs/usr/share/doc/e2fslibs |
| 484 | mkdir -p ${debdir}/e2fslibs-dev/usr/share/doc |
| 485 | ln -sf e2fslibs ${debdir}/e2fslibs-dev/usr/share/doc/e2fslibs-dev |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 486 | |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 487 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 488 | $(INSTALL) -p -m 0644 debian/libblkid.copyright \ |
Theodore Ts'o | 6fe7d11 | 2003-03-16 19:58:25 -0500 | [diff] [blame] | 489 | ${debdir}/libblkid${BLKID_SOVERSION}/usr/share/doc/libblkid${BLKID_SOVERSION}/copyright |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 490 | endif |
Theodore Ts'o | 6fe7d11 | 2003-03-16 19:58:25 -0500 | [diff] [blame] | 491 | |
Theodore Ts'o | e254d05 | 2003-12-07 01:57:04 -0500 | [diff] [blame] | 492 | dh_installdocs -Ne2fsprogs-udeb -Nlibblkid1-udeb -Nlibuuid1-udeb |
Theodore Ts'o | b90b826 | 2001-06-15 22:54:34 +0000 | [diff] [blame] | 493 | |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 494 | # HTML docs |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 495 | $(INSTALL) -d ${debdir}/e2fslibs-dev/usr/share/doc/e2fslibs/html-info/ |
Theodore Ts'o | 4534f8b | 2009-11-29 20:19:10 -0500 | [diff] [blame] | 496 | $(INSTALL) -p -m 0644 ${stdbuilddir}/doc/*.html \ |
Theodore Ts'o | 151c86a | 2003-07-25 07:03:00 -0400 | [diff] [blame] | 497 | ${debdir}/e2fslibs-dev/usr/share/doc/e2fslibs/html-info/ |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 498 | $(INSTALL) -d ${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION}/html-info/ |
Theodore Ts'o | 4534f8b | 2009-11-29 20:19:10 -0500 | [diff] [blame] | 499 | $(INSTALL) -p -m 0644 ${stdbuilddir}/lib/et/*.html \ |
Theodore Ts'o | 151c86a | 2003-07-25 07:03:00 -0400 | [diff] [blame] | 500 | ${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION}/html-info/ |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 501 | |
| 502 | # texinfo docs |
Theodore Ts'o | 151c86a | 2003-07-25 07:03:00 -0400 | [diff] [blame] | 503 | mkdir -p ${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION} |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 504 | $(INSTALL) -p -m 0644 ${topdir}/doc/libext2fs.texinfo \ |
Theodore Ts'o | 151c86a | 2003-07-25 07:03:00 -0400 | [diff] [blame] | 505 | ${debdir}/e2fslibs-dev/usr/share/doc/e2fslibs/libext2fs.texi |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 506 | $(INSTALL) -p -m 0644 ${topdir}/lib/et/com_err.texinfo \ |
Theodore Ts'o | e5b1643 | 2002-08-17 21:11:29 -0400 | [diff] [blame] | 507 | ${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION}/com_err.texi |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 508 | |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 509 | $(INSTALL) -d ${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION}/examples |
| 510 | $(INSTALL) -p -m 0644 lib/ss/ss_err.et \ |
Theodore Ts'o | 151c86a | 2003-07-25 07:03:00 -0400 | [diff] [blame] | 511 | ${stdbuilddir}/lib/ext2fs/ext2_err.et \ |
| 512 | ${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION}/examples |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 513 | $(INSTALL) -d ${debdir}/ss-dev/usr/share/doc/libss${SS_SOVERSION}/examples |
| 514 | $(INSTALL) -p -m 0644 debugfs/debug_cmds.ct \ |
Theodore Ts'o | 151c86a | 2003-07-25 07:03:00 -0400 | [diff] [blame] | 515 | ${debdir}/ss-dev/usr/share/doc/libss${SS_SOVERSION}/examples |
| 516 | |
Theodore Ts'o | 541d173 | 2002-02-23 21:23:26 -0500 | [diff] [blame] | 517 | dh_installinfo -pcomerr-dev ${stdbuilddir}/lib/et/com_err.info |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 518 | dh_installinfo -pe2fslibs-dev ${stdbuilddir}/doc/libext2fs.info |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 519 | |
Theodore Ts'o | ec3bb41 | 2006-10-04 09:12:35 -0400 | [diff] [blame] | 520 | DH_OPTIONS= dh_installchangelogs -pe2fsprogs \ |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 521 | -plibcomerr${COMERR_SOVERSION} \ |
| 522 | -plibss${SS_SOVERSION} \ |
| 523 | -pe2fslibs -pe2fsck-static \ |
| 524 | -pe2fsprogs-dbg -pe2fslibs-dbg \ |
| 525 | -plibcomerr2-dbg -plibss2-dbg |
| 526 | ifneq ($(UTIL_LINUX_NG),yes) |
| 527 | DH_OPTIONS= dh_installchangelogs -plibuuid${UUID_SOVERSION} \ |
Theodore Ts'o | 1be2ce0 | 2009-09-01 20:27:29 -0400 | [diff] [blame] | 528 | -puuid-dev -puuid-runtime -puuid-runtime-dbg -plibuuid1-dbg \ |
| 529 | -plibblkid${BLKID_SOVERSION} -plibblkid1-dbg |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 530 | endif |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 531 | |
Theodore Ts'o | a3f464f | 2007-07-04 14:51:18 -0400 | [diff] [blame] | 532 | dh_fixperms |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 533 | ifneq ($(ismips),) |
Theodore Ts'o | 30f142e | 2008-07-15 11:38:33 -0400 | [diff] [blame] | 534 | dh_strip -k -Xlib64ext2fs-nopic.a |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 535 | else |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 536 | dh_strip -k |
Theodore Ts'o | b1e22d5 | 2005-12-29 09:16:00 -0500 | [diff] [blame] | 537 | endif |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 538 | |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 539 | # debug package stuff |
| 540 | rm -rf ${udebdir}/usr |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 541 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 542 | rm -rf ${blkidudebdir}/usr |
| 543 | rm -rf ${uuidudebdir}/usr |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 544 | endif |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 545 | |
Theodore Ts'o | 20d7949 | 2011-09-25 15:40:24 -0400 | [diff] [blame] | 546 | ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 547 | mkdir -p ${debugdir}/$(USRLIB) |
| 548 | mv ${maindir}/usr/lib/debug ${debugdir}/$(USRLIB) |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 549 | rm -rf ${maindir}/usr/lib/debug |
| 550 | mv ${e2fsckstaticdir}/usr/lib/debug/sbin/* \ |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 551 | ${debugdir}/$(USRLIB)/debug |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 552 | rm -rf ${e2fsckstaticdir}/usr/lib |
| 553 | |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 554 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 555 | mkdir -p ${uuidruntimedbgdir}/$(USRLIB) |
| 556 | mv ${uuidruntimedir}/usr/lib/debug ${uuidruntimedbgdir}/$(USRLIB) |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 557 | rmdir ${uuidruntimedir}/usr/lib |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 558 | endif |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 559 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 560 | mkdir -p ${libext2dbgdir}/$(USRLIB) |
| 561 | mv ${libext2dir}/usr/lib/debug ${libext2dbgdir}/$(USRLIB) |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 562 | rmdir ${libext2dir}/usr/lib |
| 563 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 564 | mkdir -p ${libcomerrdbgdir}/$(USRLIB) |
| 565 | mv ${libcomerrdir}/usr/lib/debug ${libcomerrdbgdir}/$(USRLIB) |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 566 | rmdir ${libcomerrdir}/usr/lib |
| 567 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 568 | mkdir -p ${libssdbgdir}/$(USRLIB) |
| 569 | mv ${libssdir}/usr/lib/debug ${libssdbgdir}/$(USRLIB) |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 570 | rmdir ${libssdir}/usr/lib |
| 571 | |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 572 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 573 | mkdir -p ${libuuiddbgdir}/$(USRLIB) |
| 574 | mv ${libuuiddir}/usr/lib/debug ${libuuiddbgdir}/$(USRLIB) |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 575 | rmdir ${libuuiddir}/usr/lib |
| 576 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 577 | mkdir -p ${libblkiddbgdir}/$(USRLIB) |
| 578 | mv ${libblkiddir}/usr/lib/debug ${libblkiddbgdir}/$(USRLIB) |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 579 | rmdir ${libblkiddir}/usr/lib |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 580 | endif |
Theodore Ts'o | 20d7949 | 2011-09-25 15:40:24 -0400 | [diff] [blame] | 581 | endif |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 582 | |
Theodore Ts'o | 649bd28 | 2008-08-25 00:00:35 -0400 | [diff] [blame] | 583 | # dpkg symbol handling |
| 584 | ifneq (,$(findstring update-symbols,$(DEB_BUILD_OPTIONS))) |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 585 | SYMBOL_LIBS := e2fslibs libcomerr2 libss2 |
| 586 | ifneq ($(UTIL_LINUX_NG),yes) |
| 587 | SYMBOL_LIBS += libblkid1 libuuid1 |
| 588 | endif |
| 589 | for i in $(SYMBOL_LIBS); \ |
Theodore Ts'o | 649bd28 | 2008-08-25 00:00:35 -0400 | [diff] [blame] | 590 | do \ |
| 591 | echo "Generating symbols for $$i..."; \ |
| 592 | dpkg-gensymbols -p$$i -Pdebian/$$i > debian/$$i.tmp-patch; \ |
| 593 | cat debian/$$i.tmp-patch; \ |
| 594 | patch debian/$$i.symbols < debian/$$i.tmp-patch; \ |
| 595 | /bin/rm debian/$$i.tmp-patch; \ |
| 596 | done |
| 597 | endif |
| 598 | |
Theodore Ts'o | 3c643f8 | 2011-09-25 01:20:41 -0400 | [diff] [blame] | 599 | for i in e2fsprogs e2fsprogs-dbg e2fslibs e2fslibs-dbg; do \ |
| 600 | $(INSTALL) -p -m 0644 debian/copyright \ |
| 601 | ${debdir}/$$i/usr/share/doc/$$i/copyright; \ |
| 602 | done |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 603 | |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 604 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 605 | $(INSTALL) -p -m 0644 debian/uuid-runtime.copyright \ |
| 606 | ${uuidruntimedbgdir}/usr/share/doc/uuid-runtime-dbg/copyright |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 607 | endif |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 608 | |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 609 | $(INSTALL) -p -m 0644 debian/libcomerr2.copyright \ |
| 610 | ${libcomerrdbgdir}/usr/share/doc/libcomerr2-dbg/copyright |
| 611 | |
| 612 | $(INSTALL) -p -m 0644 debian/libss2.copyright \ |
| 613 | ${libssdbgdir}/usr/share/doc/libss2-dbg/copyright |
| 614 | |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 615 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 616 | $(INSTALL) -p -m 0644 debian/libblkid.copyright \ |
| 617 | ${libblkiddbgdir}/usr/share/doc/libblkid1-dbg/copyright |
| 618 | |
| 619 | $(INSTALL) -p -m 0644 debian/libuuid1.copyright \ |
| 620 | ${libuuiddbgdir}/usr/share/doc/libuuid1-dbg/copyright |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 621 | endif |
Theodore Ts'o | fbcb3a8 | 2008-07-07 09:43:26 -0400 | [diff] [blame] | 622 | |
Theodore Ts'o | b90b826 | 2001-06-15 22:54:34 +0000 | [diff] [blame] | 623 | dh_compress |
Theodore Ts'o | b90b826 | 2001-06-15 22:54:34 +0000 | [diff] [blame] | 624 | |
Theodore Ts'o | e254d05 | 2003-12-07 01:57:04 -0500 | [diff] [blame] | 625 | dh_makeshlibs -Ne2fsprogs-udeb -Nlibblkid1-udeb -Nlibuuid1-udeb |
Theodore Ts'o | ddad038 | 2012-03-27 11:48:18 -0700 | [diff] [blame] | 626 | dh_makeshlibs --add-udeb=e2fsprogs-udeb -plibcomerr${COMERR_SOVERSION} \ |
Theodore Ts'o | 151c86a | 2003-07-25 07:03:00 -0400 | [diff] [blame] | 627 | -V 'libcomerr2 (>= 1.33-3)' |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 628 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | a178852 | 2007-03-04 08:17:18 -0500 | [diff] [blame] | 629 | dh_makeshlibs -plibblkid${BLKID_SOVERSION} -V 'libblkid1 (>= 1.39-1)' |
Theodore Ts'o | 7512f13 | 2006-03-29 19:03:38 -0500 | [diff] [blame] | 630 | echo "udeb: libblkid 1 libblkid1-udeb" >> \ |
| 631 | debian/libblkid1/DEBIAN/shlibs |
| 632 | echo "udeb: libuuid 1 libuuid1-udeb" >> debian/libuuid1/DEBIAN/shlibs |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 633 | endif |
Theodore Ts'o | 6fe7d11 | 2003-03-16 19:58:25 -0500 | [diff] [blame] | 634 | |
Theodore Ts'o | b90b826 | 2001-06-15 22:54:34 +0000 | [diff] [blame] | 635 | dh_installdeb |
Theodore Ts'o | 7978621 | 2001-06-22 23:05:23 -0400 | [diff] [blame] | 636 | dh_shlibdeps -l${stdbuilddir}/lib |
Theodore Ts'o | 151c86a | 2003-07-25 07:03:00 -0400 | [diff] [blame] | 637 | dh_shlibdeps -pe2fsprogs -l${stdbuilddir}/lib \ |
| 638 | -u"-Ldebian/e2fsprogs.shlibs.local" |
Theodore Ts'o | 7a15db2 | 2003-07-29 22:15:33 -0400 | [diff] [blame] | 639 | dh_shlibdeps -pe2fsprogs-udeb -l${stdbuilddir}/lib \ |
| 640 | -u"-Ldebian/e2fsprogs-udeb.shlibs.local" |
Theodore Ts'o | b90b826 | 2001-06-15 22:54:34 +0000 | [diff] [blame] | 641 | |
Theodore Ts'o | 151c86a | 2003-07-25 07:03:00 -0400 | [diff] [blame] | 642 | dh_gencontrol -Ncomerr-dev -Nss-dev -Nuuid-dev \ |
Theodore Ts'o | e254d05 | 2003-12-07 01:57:04 -0500 | [diff] [blame] | 643 | -Ne2fsprogs-udeb -Nlibblkid1-udeb -Nlibuuid1-udeb |
Theodore Ts'o | b90b826 | 2001-06-15 22:54:34 +0000 | [diff] [blame] | 644 | DH_OPTIONS= dh_gencontrol -pcomerr-dev \ |
Theodore Ts'o | d8a1a67 | 2008-01-30 07:20:54 -0500 | [diff] [blame] | 645 | -u '-v${COMERR_VERSION}-${MAIN_VERSION} -VmainBinary=${MAIN_VERSION}' |
Theodore Ts'o | b90b826 | 2001-06-15 22:54:34 +0000 | [diff] [blame] | 646 | DH_OPTIONS= dh_gencontrol -pss-dev \ |
Theodore Ts'o | d8a1a67 | 2008-01-30 07:20:54 -0500 | [diff] [blame] | 647 | -u '-v${SS_VERSION}-${MAIN_VERSION} -VmainBinary=${MAIN_VERSION}' |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 648 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | b90b826 | 2001-06-15 22:54:34 +0000 | [diff] [blame] | 649 | DH_OPTIONS= dh_gencontrol -puuid-dev \ |
Theodore Ts'o | d8a1a67 | 2008-01-30 07:20:54 -0500 | [diff] [blame] | 650 | -u '-v${UUID_VERSION}-${MAIN_VERSION} -VmainBinary=${MAIN_VERSION}' |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 651 | endif |
Theodore Ts'o | bf5498c | 2008-09-04 22:49:15 -0400 | [diff] [blame] | 652 | dh_gencontrol -pe2fsprogs-udeb -- -fdebian/files~ |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 653 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | bf5498c | 2008-09-04 22:49:15 -0400 | [diff] [blame] | 654 | dh_gencontrol -plibblkid1-udeb -- -fdebian/files~ |
| 655 | dh_gencontrol -plibuuid1-udeb -- -fdebian/files~ |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 656 | endif |
Theodore Ts'o | b90b826 | 2001-06-15 22:54:34 +0000 | [diff] [blame] | 657 | |
Theodore Ts'o | bf5498c | 2008-09-04 22:49:15 -0400 | [diff] [blame] | 658 | dpkg-distaddfile $(UDEB_NAME) debian-installer $(UDEB_PRIORITY) |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 659 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | bf5498c | 2008-09-04 22:49:15 -0400 | [diff] [blame] | 660 | dpkg-distaddfile $(BLKID_UDEB_NAME) debian-installer $(BLKID_UDEB_PRIORITY) |
| 661 | dpkg-distaddfile $(UUID_UDEB_NAME) debian-installer $(UUID_UDEB_PRIORITY) |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 662 | endif |
Theodore Ts'o | e254d05 | 2003-12-07 01:57:04 -0500 | [diff] [blame] | 663 | dh_md5sums -Ne2fsprogs-udeb -Nlibblkid1-udeb -Nlibuuid1-udeb |
| 664 | dh_builddeb -Ne2fsprogs-udeb -Nlibblkid1-udeb -Nlibuuid1-udeb |
Theodore Ts'o | dd198d6 | 2002-10-31 03:44:35 -0500 | [diff] [blame] | 665 | dh_builddeb -pe2fsprogs-udeb --filename=$(UDEB_NAME) |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 666 | ifneq ($(UTIL_LINUX_NG),yes) |
Theodore Ts'o | 417781a | 2003-04-10 00:18:56 -0400 | [diff] [blame] | 667 | dh_builddeb -plibblkid1-udeb --filename=$(BLKID_UDEB_NAME) |
Theodore Ts'o | e254d05 | 2003-12-07 01:57:04 -0500 | [diff] [blame] | 668 | dh_builddeb -plibuuid1-udeb --filename=$(UUID_UDEB_NAME) |
Theodore Ts'o | 95f65c3 | 2009-07-18 22:14:58 -0400 | [diff] [blame] | 669 | endif |
Theodore Ts'o | e254d05 | 2003-12-07 01:57:04 -0500 | [diff] [blame] | 670 | |
Theodore Ts'o | 4d8f08f | 2001-05-09 04:51:07 +0000 | [diff] [blame] | 671 | binary: binary-indep binary-arch |
| 672 | |
Theodore Ts'o | 910fae9 | 2012-02-15 18:29:37 -0500 | [diff] [blame] | 673 | .PHONY: binary binary-arch binary-indep clean checkroot mrproper \ |
| 674 | debug_flags debian-files |
| 675 | |
| 676 | debug_flags: |
| 677 | @echo CFLAGS is $(CFLAGS) |
| 678 | @echo LDFLAGS is $(LDFLAGS) |
| 679 | @echo CPPFLAGS is $(CPPFLAGS) |