#!/usr/bin/make -f #export DH_VERBOSE=1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all %: dh $@ # by default build is not verbose enough to check build flags: override_dh_auto_configure: dh_auto_configure -- --disable-silent-rules include /usr/share/dpkg/default.mk VER_FULL = $(DEB_VERSION_UPSTREAM) # it should be possible to simplify the following: properties.html: wget -O $@ http://openslide.org/docs/properties/ aperio.html: wget -O $@ http://openslide.org/formats/aperio/ hamamatsu.html: wget -O $@ http://openslide.org/formats/hamamatsu/ leica.html: wget -O $@ http://openslide.org/formats/leica/ mirax.html: wget -O $@ http://openslide.org/formats/mirax/ philips.html: wget -O $@ http://openslide.org/formats/philips/ sakura.html: wget -O $@ http://openslide.org/formats/sakura/ trestle.html: wget -O $@ http://openslide.org/formats/trestle/ ventana.html: wget -O $@ http://openslide.org/formats/ventana/ generic-tiff.html: wget -O $@ http://openslide.org/formats/generic-tiff/ %.xml: %.html xsltproc --nonet --output $<.dummy.xml --html debian/process.xsl $< sed -i -e 's/BEGIN SECTION//g' -e 's@END SECTION@@g' $<.dummy.xml xmllint --nonet --output $@ --format $<.dummy.xml rm $<.dummy.xml debian/openslide-formats.3: properties.xml aperio.xml hamamatsu.xml leica.xml mirax.xml philips.xml sakura.xml trestle.xml ventana.xml generic-tiff.xml debian/openslide-formats.3.xml (cd debian && sed -e 's@VER_FULL@$(VER_FULL)@g' openslide-formats.3.xml > openslide.tmp.xml) (cd debian && xsltproc --xinclude openslide.tmp.xml) override_dh_install: dh_install find debian/tmp -name lib*.la -delete