1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
# routine-update: We really need to parse d/changelog here!
include /usr/share/dpkg/default.mk
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export ISDEBIAN="yes"
export DEBIAN_MAINTAINER="mira@packages.debian.org"
pkg=mira-assembler
exampledir=usr/share/doc/mira-examples/examples/minidemo/data/bbdataset1/
%:
dh $@
override_dh_auto_configure:
cp -a .version .version.bak
dh_auto_configure -- --with-boost-libdir=/usr/lib/$(DEB_HOST_MULTIARCH) --with-boost=/usr
override_dh_auto_install-arch:
make install DESTDIR=$(CURDIR)/debian/${pkg}
override_dh_auto_install-indep:
#There is no installation target for the docs
mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/${pkg}
cp -r -t $(CURDIR)/debian/tmp/usr/share/doc/${pkg} doc/docbook/bookfigures doc/docbook/images \
doc/docbook/doccss doc/docbook/DefinitiveGuideToMIRA.html || true
override_dh_auto_test-arch:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
make check
endif
override_dh_auto_test-indep:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
echo no tests for -indep
endif
override_dh_auto_build-arch:
# some *.cc files are created by old flex version which breaks the build
# see bug #812681
find -name '*.ll' | sed -e 's/[.]ll$$/.cc/' | xargs rm -f
dh_auto_build
override_dh_auto_build-indep:
dh_auto_build --sourcedir=doc
override_dh_installchangelogs:
dh_installchangelogs src/mira/CHANGES.txt
#Must clean up the docs before cleaning out config.status
#Then scrub some junk not picked up by 'make clean'
override_dh_auto_clean:
if [ -f .version.bak ] ; then mv .version.bak .version; fi
( cd doc ; make clean ) || true
dh_auto_clean || true
find * -name Makefile -exec rm '{}' ';'
find * -name '*.xxd.H' -exec rm '{}' ';'
find * -name '*.par.H' -exec rm '{}' ';'
find * -name 'compileinfo.*' -exec rm '{}' ';'
|