rules revision ef80fdc8ad014c55e601018f4f6ec22065c37030
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 11export LC_ALL=C 12 13# These are used for cross-compiling and for saving the configure script 14# from having to guess our platform (since we know it already) 15DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) 16DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) 17DEB_HOST_OS ?= $(shell dpkg-architecture -qDEB_HOST_OS) 18DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) 19DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) 20 21# find the version for the main package, from changelog file 22MAIN_VERSION = $(shell head -n 1 debian/changelog | cut '-d ' -f 2 | sed 's/[()]//g') 23# find versions for libraries going into their own packages, from their Makefile.in's, 24# and sonames for all libs 25COMERR_VERSION = $(shell grep ELF_VERSION lib/et/Makefile.in | cut '-d ' -f3) 26COMERR_SOVERSION = $(shell grep ELF_SO_VERSION lib/et/Makefile.in | cut '-d ' -f3) 27SS_VERSION = $(shell grep ELF_VERSION lib/ss/Makefile.in | cut '-d ' -f3) 28SS_SOVERSION = $(shell grep ELF_SO_VERSION lib/ss/Makefile.in | cut '-d ' -f3) 29UUID_VERSION = $(shell grep ELF_VERSION lib/uuid/Makefile.in | cut '-d ' -f3) 30UUID_SOVERSION = $(shell grep ELF_SO_VERSION lib/uuid/Makefile.in | cut '-d ' -f3) 31BLKID_VERSION = $(shell grep ELF_VERSION lib/blkid/Makefile.in | cut '-d ' -f3) 32BLKID_SOVERSION = $(shell grep ELF_SO_VERSION lib/blkid/Makefile.in | cut '-d ' -f3) 33EXT2FS_SOVERSION = $(shell grep ELF_SO_VERSION lib/ext2fs/Makefile.in | cut '-d ' -f3) 34E2P_SOVERSION = $(shell grep ELF_SO_VERSION lib/e2p/Makefile.in | cut '-d ' -f3) 35 36package=e2fsprogs 37 38topdir=$(shell pwd) 39debdir=${topdir}/debian 40tmpdir=${debdir}/tmp 41udebdir=${debdir}/e2fsprogs-udeb 42blkidudebdir=${debdir}/libblkid1-udeb 43uuidudebdir=${debdir}/libuuid1-udeb 44maindir=${debdir}/e2fsprogs 45stdbuilddir=${debdir}/BUILD-STD 46bfbuilddir=${debdir}/BUILD-BF 47staticbuilddir=${debdir}/BUILD-STATIC 48mipsbuilddir=${debdir}/BUILD-MIPS 49mipsbuilddir64=${debdir}/BUILD-MIPS-64 50# docdir=${maindir}/usr/share/doc/${package} 51MANDIR=/usr/share/man 52mandir=${tmpdir}${MANDIR} 53 54UDEB_NAME = $(package)-udeb_$(MAIN_VERSION)_$(DEB_HOST_ARCH).udeb 55UDEB_PRIORITY = $(shell grep '^Package: e2fsprogs-udeb' debian/control -A 10 | grep ^Priority: | cut -d ' ' -f 2) 56 57BLKID_UDEB_NAME = libblkid1-udeb_$(MAIN_VERSION)_$(DEB_HOST_ARCH).udeb 58BLKID_UDEB_PRIORITY = $(shell grep '^Package: libblkid1-udeb' debian/control -A 10 | grep ^Priority: | cut -d ' ' -f 2) 59 60UUID_UDEB_NAME = libuuid1-udeb_$(MAIN_VERSION)_$(DEB_HOST_ARCH).udeb 61UUID_UDEB_PRIORITY = $(shell grep '^Package: libuuid1-udeb' debian/control -A 10 | grep ^Priority: | cut -d ' ' -f 2) 62 63STAMPSDIR=debian/stampdir 64CFGSTDSTAMP=${STAMPSDIR}/configure-std-stamp 65CFGBFSTAMP=${STAMPSDIR}/configure-bf-stamp 66CFGSTATICSTAMP=${STAMPSDIR}/configure-static-stamp 67BUILDSTDSTAMP=${STAMPSDIR}/build-std-stamp 68BUILDBFSTAMP=${STAMPSDIR}/build-bf-stamp 69BUILDSTATICSTAMP=${STAMPSDIR}/build-static-stamp 70 71CCOPTS = -g 72 73INSTALL = install 74INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 0755 75 76ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) 77CCOPTS += -O2 78endif 79ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) 80INSTALL_PROGRAM += -s 81endif 82 83ifeq (${DEB_HOST_ARCH},alpha) 84CCOPTS += -DHAVE_NETINET_IN_H 85else 86CCOPTS += -D__NO_STRING_INLINES 87endif 88 89ifeq (${DEB_HOST_ARCH_OS},linux) 90DEVMAPPER = --enable-blkid-devmapper 91BUILD_STATIC = build-static 92E2FSCK_STATIC = ${staticbuilddir}/e2fsck/e2fsck.static 93else 94E2FSCK_STATIC = ${stdbuilddir}/e2fsck/e2fsck.static 95endif 96 97BF_CCOPTS = -Os -fomit-frame-pointer 98 99COMMON_CONF_FLAGS = \ 100 --enable-elf-shlibs --infodir=/usr/share/info --enable-fsck 101 102STD_CONF_FLAGS = --with-ccopts="${CCOPTS}" --enable-compression \ 103 ${DEVMAPPER} 104 105BF_CONF_FLAGS = --with-ccopts="${CCOPTS} ${BF_CCOPTS}" \ 106 --disable-nls --disable-imager \ 107 --disable-uuidd --disable-tls \ 108 --disable-debugfs --disable-e2initrd-helper 109 110STATIC_CONF_FLAGS = --with-ccopts="${CCOPTS}" \ 111 --disable-nls --disable-imager \ 112 --disable-uuidd --disable-tls \ 113 --disable-e2initrd-helper \ 114 --with-ccopts=-fno-stack-protector 115 116MIPS_NOPIC_CONF_FLAGS = --with-ccopts="${CCOPTS}" \ 117 --disable-nls --disable-imager \ 118 --disable-uuidd --disable-tls \ 119 --disable-resizer # --disable-debugfs 120 121# we can't use those flags at configure time 122MIPS_CFLAGS= -G 0 -fno-pic -mno-abicalls 123MIPS_CFLAGS_64= -mabi=64 -G 0 -fno-pic -mno-abicalls 124 125ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) 126ifneq (,$(findstring $(DEB_BUILD_ARCH),mips mipsel)) 127ismips=ismips 128endif 129endif 130 131${CFGSTDSTAMP}: 132 dh_testdir 133 134 # Make sure we don't try to rebuild the configure scripts 135 find . -name configure | xargs touch 136 137 mkdir -p ${stdbuilddir} 138ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) 139 cd ${stdbuilddir} && AWK=/usr/bin/awk \ 140 ${topdir}/configure ${COMMON_CONF_FLAGS} ${STD_CONF_FLAGS} 141else 142 cd ${stdbuilddir} && AWK=/usr/bin/awk CC="${DEB_HOST_GNU_TYPE}-gcc" \ 143 ${topdir}/configure ${COMMON_CONF_FLAGS} ${STD_CONF_FLAGS} \ 144 --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) 145endif 146 147 # specially-built MIPS libs 148ifneq ($(ismips),) 149 mkdir -p ${mipsbuilddir} ${mipsbuilddir64} 150 cd ${mipsbuilddir} && AWK=/usr/bin/awk \ 151 ${topdir}/configure ${MIPS_NOPIC_CONF_FLAGS} 152 cd ${mipsbuilddir64} && AWK=/usr/bin/awk \ 153 ${topdir}/configure ${MIPS_NOPIC_CONF_FLAGS} 154endif 155 156 mkdir -p ${STAMPSDIR} 157 touch ${CFGSTDSTAMP} 158 159${CFGBFSTAMP}: 160 dh_testdir 161 rm -f config.cache 162 163 mkdir -p ${bfbuilddir} 164ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) 165 cd ${bfbuilddir} && AWK=/usr/bin/awk \ 166 ${topdir}/configure ${COMMON_CONF_FLAGS} ${BF_CONF_FLAGS} 167else 168 cd ${bfbuilddir} && AWK=/usr/bin/awk CC="${DEB_HOST_GNU_TYPE}-gcc" \ 169 ${topdir}/configure ${COMMON_CONF_FLAGS} ${BF_CONF_FLAGS} \ 170 --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) 171endif 172 mkdir -p ${STAMPSDIR} 173 touch ${CFGBFSTAMP} 174 175${CFGSTATICSTAMP}: 176 dh_testdir 177 rm -f config.cache 178 179 mkdir -p ${staticbuilddir} 180ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) 181 if type diet > /dev/null 2>&1 ; then \ 182 STATIC_CONF_FLAGS="$STATIC_CONF_FLAGS --with-diet-libc"; \ 183 fi 184 cd ${staticbuilddir} && AWK=/usr/bin/awk \ 185 ${topdir}/configure ${STATIC_CONF_FLAGS} 186else 187 cd ${staticbuilddir} && AWK=/usr/bin/awk CC="${DEB_HOST_GNU_TYPE}-gcc" \ 188 ${topdir}/configure ${COMMON_CONF_FLAGS} ${STATIC_CONF_FLAGS} \ 189 --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) 190endif 191 mkdir -p ${STAMPSDIR} 192 touch ${CFGSTATICSTAMP} 193 194build: build-std build-bf $(BUILD_STATIC) 195 196build-std: ${BUILDSTDSTAMP} 197${BUILDSTDSTAMP}: ${CFGSTDSTAMP} 198 dh_testdir 199 $(MAKE) -C ${stdbuilddir} all 200 $(MAKE) -C ${stdbuilddir}/e2fsck e2fsck.static 201 202 ( cd ${stdbuilddir}/doc && \ 203 texi2html -split_chapter ${topdir}/doc/libext2fs.texinfo ) 204 ( cd ${stdbuilddir}/lib/et && $(MAKE) com_err.info && \ 205 texi2html -split_chapter -expandinfo ${topdir}/lib/et/com_err.texinfo ) 206 207 # specially-built MIPS libs 208ifneq ($(ismips),) 209 $(MAKE) -C ${mipsbuilddir}/util 210 $(MAKE) -C ${mipsbuilddir} \ 211 CFLAGS="${CCOPTS} ${MIPS_CFLAGS}" \ 212 LIB_SUBDIRS="lib/et lib/ext2fs" libs 213 $(MAKE) -C ${mipsbuilddir64}/util 214 $(MAKE) -C ${mipsbuilddir64} \ 215 CFLAGS="${CCOPTS} ${MIPS_CFLAGS_64}" \ 216 LIB_SUBDIRS="lib/et lib/ext2fs" libs 217endif 218 219 touch ${BUILDSTDSTAMP} 220 221build-bf: ${BUILDBFSTAMP} 222${BUILDBFSTAMP}: ${CFGBFSTAMP} 223 dh_testdir 224 $(MAKE) -C ${bfbuilddir} libs 225 $(MAKE) -C ${bfbuilddir}/e2fsck all 226 $(MAKE) -C ${bfbuilddir}/misc all 227 touch ${BUILDBFSTAMP} 228 229build-static: ${BUILDSTATICSTAMP} 230${BUILDSTATICSTAMP}: ${CFGSTATICSTAMP} 231 dh_testdir 232 $(MAKE) -C ${staticbuilddir} libs 233 $(MAKE) -C ${staticbuilddir}/e2fsck all e2fsck.static 234 touch ${BUILDSTATICSTAMP} 235 236clean: 237 dh_testdir 238 rm -rf ${STAMPSDIR} 239 [ ! -f ${stdbuilddir}/Makefile ] || $(MAKE) -C ${stdbuilddir} distclean 240 [ ! -f ${bfbuilddir}/Makefile ] || $(MAKE) -C ${bfbuilddir} distclean 241 [ ! -f ${staticbuilddir}/Makefile ] || $(MAKE) -C ${staticbuilddir} distclean 242 rm -rf ${stdbuilddir} ${bfbuilddir} ${staticbuilddir} ${mipsbuilddir} ${mipsbuilddir64} 243 rm -f doc/libext2fs/*.html lib/et/com_err/*.html debian/*.substvars 244 dh_clean 245 246install: cleanup install-std 247 248# This rule allows to factorize the dh_clean between the 2 install rules 249# This must be launched before install-* (if launching them by hand, for 250# exemple) or results are unpredictable 251cleanup: 252 dh_testdir 253 dh_testroot 254 dh_clean -k 255 256install-std: DH_OPTIONS= 257install-std: build 258 dh_testdir 259 dh_testroot 260 dh_installdirs 261 262 mkdir -p ${tmpdir}/sbin 263 $(MAKE) -C ${stdbuilddir} install DESTDIR=${tmpdir} \ 264 INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true 265 # static libs and .h files 266 $(MAKE) -C ${stdbuilddir} install-libs DESTDIR=${tmpdir} LDCONFIG=true 267 268 # statically-linked fsck 269 ${INSTALL_PROGRAM} $(E2FSCK_STATIC) ${tmpdir}/sbin 270 cp ${mandir}/man8/e2fsck.8 ${mandir}/man8/e2fsck.static.8 271 272 ln -s et/com_err.h ${tmpdir}/usr/include 273 274 dh_movefiles 275 test -z `find ${tmpdir} -type f` 276 277 # specially-built MIPS libs 278ifneq ($(ismips),) 279 $(INSTALL) -p -m 0644 ${mipsbuilddir}/lib/libext2fs.a \ 280 ${debdir}/e2fslibs-dev/usr/lib/libext2fs-nopic.a 281 $(INSTALL) -p -m 0644 ${mipsbuilddir64}/lib/libext2fs.a \ 282 ${debdir}/e2fslibs-dev/usr/lib/lib64ext2fs-nopic.a 283endif 284 285install-udeb: DH_OPTIONS= 286install-udeb: build 287 dh_testdir 288 dh_testroot 289 290 $(MAKE) -C ${bfbuilddir} install-shlibs-libs-recursive DESTDIR=${udebdir} \ 291 INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true 292 $(MAKE) -C ${bfbuilddir}/e2fsck install DESTDIR=${udebdir} \ 293 INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true 294 $(MAKE) -C ${bfbuilddir}/misc install DESTDIR=${udebdir} \ 295 INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true 296 $(MAKE) -C ${bfbuilddir}/resize install DESTDIR=${udebdir} \ 297 INSTALL_PROGRAM="${INSTALL_PROGRAM}" LDCONFIG=true 298 299 rm -rf ${udebdir}/usr 300 find ${udebdir}/sbin -type f -a ! -name e2fsck \ 301 -a ! -name mke2fs -a ! -name tune2fs \ 302 -a ! -name resize2fs -a ! -name badblocks -print | xargs rm 303 304 (cd ${udebdir}/sbin; ln -s e2fsck fsck.ext2 ; \ 305 ln -s e2fsck fsck.ext3 ; ln -s mke2fs mkfs.ext2 ; \ 306 ln -s mke2fs mkfs.ext3) 307 308 mkdir -p ${blkidudebdir}/lib 309 mv ${udebdir}/lib/libblkid.* ${blkidudebdir}/lib 310 311 mkdir -p ${uuidudebdir}/lib 312 mv ${udebdir}/lib/libuuid.* ${uuidudebdir}/lib 313 314binary-indep: 315 # no arch-independant debs. 316 317binary-arch: DH_OPTIONS= -a 318binary-arch: install install-udeb 319 dh_testdir 320 dh_testroot 321 322 # lintian overrides 323 for i in $$(cd debian && echo *.lintian-overrides); do \ 324 pkg=$${i%.lintian-overrides} ;\ 325 $(INSTALL) -m 0644 -D -p debian/$$i ${debdir}/$${pkg}/usr/share/lintian/overrides/$${pkg} ;\ 326 done 327 328 # mkinitrd script 329 mkdir -p debian/e2fsprogs/usr/share/initrd-tools/scripts 330 $(INSTALL) -p -o root -g root -m 0755 debian/initrd-tools.e2fsprogs \ 331 debian/e2fsprogs/usr/share/initrd-tools/scripts/e2fsprogs 332 333 # initrd script 334 mkdir -p debian/e2fsprogs/usr/share/e2fsprogs 335 $(INSTALL) -p -o root -g root -m 0755 debian/initrd.ext3-add-journal \ 336 debian/e2fsprogs/usr/share/e2fsprogs/initrd.ext3-add-journal 337 338 339 # symlinks to prepare dh_installdocs run 340 341 mkdir -p ${debdir}/libblkid${BLKID_SOVERSION}/usr/share/doc/libblkid${BLKID_SOVERSION} 342 mkdir -p ${debdir}/libblkid-dev/usr/share/doc 343 ln -sf libblkid${BLKID_SOVERSION} ${debdir}/libblkid-dev/usr/share/doc/libblkid-dev 344 345 mkdir -p ${debdir}/libss${SS_SOVERSION}/usr/share/doc/libss${SS_SOVERSION} 346 mkdir -p ${debdir}/ss-dev/usr/share/doc 347 ln -sf libss${SS_SOVERSION} ${debdir}/ss-dev/usr/share/doc/ss-dev 348 349 mkdir -p ${debdir}/libcomerr${COMERR_SOVERSION}/usr/share/doc/libcomerr${COMERR_SOVERSION} 350 mkdir -p ${debdir}/comerr-dev/usr/share/doc 351 ln -sf libcomerr${COMERR_SOVERSION} ${debdir}/comerr-dev/usr/share/doc/comerr-dev 352 353 mkdir -p ${debdir}/libuuid${UUID_SOVERSION}/usr/share/doc/libuuid${UUID_SOVERSION} 354 mkdir -p ${debdir}/uuid-dev/usr/share/doc 355# ln -sf libuuid${UUID_SOVERSION} ${debdir}/uuid-dev/usr/share/doc/uuid-dev 356 357 mkdir -p ${debdir}/e2fslibs/usr/share/doc/e2fslibs 358 mkdir -p ${debdir}/e2fslibs-dev/usr/share/doc 359 ln -sf e2fslibs ${debdir}/e2fslibs-dev/usr/share/doc/e2fslibs-dev 360 361 $(INSTALL) -p -m 0644 debian/libblkid.copyright \ 362 ${debdir}/libblkid${BLKID_SOVERSION}/usr/share/doc/libblkid${BLKID_SOVERSION}/copyright 363 364 dh_installdocs -Ne2fsprogs-udeb -Nlibblkid1-udeb -Nlibuuid1-udeb 365 366 # HTML docs 367 $(INSTALL) -d ${debdir}/e2fslibs-dev/usr/share/doc/e2fslibs/html-info/ 368 $(INSTALL) -p -m 0644 ${stdbuilddir}/doc/libext2fs/*.html \ 369 ${debdir}/e2fslibs-dev/usr/share/doc/e2fslibs/html-info/ 370 $(INSTALL) -d ${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION}/html-info/ 371 $(INSTALL) -p -m 0644 ${stdbuilddir}/lib/et/com_err/*.html \ 372 ${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION}/html-info/ 373 374 # texinfo docs 375 mkdir -p ${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION} 376 $(INSTALL) -p -m 0644 ${topdir}/doc/libext2fs.texinfo \ 377 ${debdir}/e2fslibs-dev/usr/share/doc/e2fslibs/libext2fs.texi 378 $(INSTALL) -p -m 0644 ${topdir}/lib/et/com_err.texinfo \ 379 ${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION}/com_err.texi 380 381 $(INSTALL) -d ${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION}/examples 382 $(INSTALL) -p -m 0644 lib/ss/ss_err.et \ 383 ${stdbuilddir}/lib/ext2fs/ext2_err.et \ 384 ${debdir}/comerr-dev/usr/share/doc/libcomerr${COMERR_SOVERSION}/examples 385 $(INSTALL) -d ${debdir}/ss-dev/usr/share/doc/libss${SS_SOVERSION}/examples 386 $(INSTALL) -p -m 0644 debugfs/debug_cmds.ct \ 387 ${debdir}/ss-dev/usr/share/doc/libss${SS_SOVERSION}/examples 388 389 $(INSTALL) -d ${debdir}/uuid-dev/usr/share/doc/libuuid${UUID_SOVERSION} 390 391 if test -f /etc/lsb-release && \ 392 grep -q DISTRIB_ID=Ubuntu /etc/lsb-release; then \ 393 $(INSTALL) -p -m 0644 e2fsck/e2fsck.conf.ubuntu \ 394 ${debdir}/e2fsprogs/etc/e2fsck.conf; \ 395 fi 396 397 dh_installinfo -pcomerr-dev ${stdbuilddir}/lib/et/com_err.info 398 dh_installinfo -pe2fslibs-dev ${stdbuilddir}/doc/libext2fs.info 399 400 DH_OPTIONS= dh_installchangelogs -pe2fsprogs \ 401 -plibblkid${BLKID_SOVERSION} -plibcomerr${COMERR_SOVERSION} \ 402 -plibss${SS_SOVERSION} -plibuuid${UUID_SOVERSION} \ 403 -pe2fslibs -puuid-dev -puuid-runtime -pe2fsck-static 404 405 dh_fixperms 406ifneq ($(ismips),) 407 dh_strip -Xlib64ext2fs-nopic.a 408else 409 dh_strip 410endif 411 412 dh_compress 413 414 dh_makeshlibs -Ne2fsprogs-udeb -Nlibblkid1-udeb -Nlibuuid1-udeb 415 dh_makeshlibs -plibcomerr${COMERR_SOVERSION} \ 416 -V 'libcomerr2 (>= 1.33-3)' 417 dh_makeshlibs -plibblkid${BLKID_SOVERSION} -V 'libblkid1 (>= 1.39-1)' 418 echo "udeb: libblkid 1 libblkid1-udeb" >> \ 419 debian/libblkid1/DEBIAN/shlibs 420 echo "udeb: libuuid 1 libuuid1-udeb" >> debian/libuuid1/DEBIAN/shlibs 421 422 dh_installdeb 423 rm debian/e2fsprogs-udeb/DEBIAN/conffiles 424 dh_shlibdeps -l${stdbuilddir}/lib 425 dh_shlibdeps -pe2fsprogs -l${stdbuilddir}/lib \ 426 -u"-Ldebian/e2fsprogs.shlibs.local" 427 dh_shlibdeps -pe2fsprogs-udeb -l${stdbuilddir}/lib \ 428 -u"-Ldebian/e2fsprogs-udeb.shlibs.local" 429 430 dh_gencontrol -Ncomerr-dev -Nss-dev -Nuuid-dev \ 431 -Ne2fsprogs-udeb -Nlibblkid1-udeb -Nlibuuid1-udeb 432 DH_OPTIONS= dh_gencontrol -pcomerr-dev \ 433 -u '-v${COMERR_VERSION}-${MAIN_VERSION} -VmainBinary=${MAIN_VERSION}' 434 DH_OPTIONS= dh_gencontrol -pss-dev \ 435 -u '-v${SS_VERSION}-${MAIN_VERSION} -VmainBinary=${MAIN_VERSION}' 436 DH_OPTIONS= dh_gencontrol -puuid-dev \ 437 -u '-v${UUID_VERSION}-${MAIN_VERSION} -VmainBinary=${MAIN_VERSION}' 438 439 dh_md5sums -Ne2fsprogs-udeb -Nlibblkid1-udeb -Nlibuuid1-udeb 440 dh_builddeb -Ne2fsprogs-udeb -Nlibblkid1-udeb -Nlibuuid1-udeb 441 442 # udeb stuff 443 dh_gencontrol -pe2fsprogs-udeb -- -fdebian/files~ 444 dpkg-distaddfile $(UDEB_NAME) debian-installer $(UDEB_PRIORITY) 445 dh_builddeb -pe2fsprogs-udeb --filename=$(UDEB_NAME) 446 447 dh_gencontrol -plibblkid1-udeb -- -fdebian/files~ 448 dpkg-distaddfile $(BLKID_UDEB_NAME) debian-installer $(BLKID_UDEB_PRIORITY) 449 dh_builddeb -plibblkid1-udeb --filename=$(BLKID_UDEB_NAME) 450 451 dh_gencontrol -plibuuid1-udeb -- -fdebian/files~ 452 dpkg-distaddfile $(UUID_UDEB_NAME) debian-installer $(UUID_UDEB_PRIORITY) 453 dh_builddeb -plibuuid1-udeb --filename=$(UUID_UDEB_NAME) 454 455binary: binary-indep binary-arch 456 457.PHONY: binary binary-arch binary-indep clean checkroot 458