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