Commit 31c01cd1 authored by Axel Beckert's avatar Axel Beckert

Finally switch normalized debian/rules to minimal dh style

parent d301ef83
......@@ -16,6 +16,7 @@ mp4h (1.3.1-7) UNRELEASED; urgency=low
+ Support multiarch lib directories
+ Make clean target more robust
+ Use debian/docs and don't list upstream changelog explicitly
+ Finally switch normalized debian/rules to minimal dh style
* Build against system copy of PCRE3
+ Add build-dependency on libpcre3-dev
+ No more install README.pcre into /usr/share/doc/mp4h
......
......@@ -3,22 +3,16 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp: configure-stamp
dh_testdir
dh_auto_build
dh_auto_test
touch build-stamp
# aclocal (called from autoreconf) finds gettext *.m4 files
GETTEXT_TOP_FILES= ABOUT-NLS config.rpath
GETTEXT_PO_FILES= Makefile.in.in Rules-quot boldquot.sed \
en@boldquot.header en@quot.header insert-header.sin \
quot.sed remove-potcdate.sin
configure-stamp:
%:
dh $@
override_dh_auto_configure:
# Move everything we don't need away
tar cvf debian/not-needed-for-build.tar \
intl ABOUT-NLS po/Makefile.in.in aclocal.m4 config.guess config.sub \
......@@ -38,14 +32,11 @@ configure-stamp:
ACLOCAL=aclocal-1.9 AUTOMAKE=automake-1.9 dh_autoreconf
dh_auto_configure -- \
--without-included-ltdl \
--with-modules='intl:gettext' \
--with-tidy=/usr/bin/tidy
@:>$@
--without-included-ltdl \
--with-modules='intl:gettext' \
--with-tidy=/usr/bin/tidy
clean:
dh_testdir
dh_testroot
override_dh_auto_clean:
-tar cvf debian/needed-after-clean.tar ABOUT-NLS po/Makefile.in.in
ACLOCAL=aclocal-1.9 AUTOMAKE=automake-1.9 dh_autoreconf_clean
# PO stuff
......@@ -60,33 +51,9 @@ clean:
-o -name '*.l[ao]' \
-o -name Makefile ')' \
-delete
dh_clean
install: build-stamp
dh_testdir
dh_testroot
dh_prep
override_dh_auto_install:
dh_auto_install
sed -e "/dependency_libs/ s/'.*'/''/" \
-i "`find $(CURDIR)/debian/mp4h/usr/lib -name gettext.la`"
binary: binary-arch binary-indep
binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installchangelogs
-find $(CURDIR)/debian/mp4h -type d -empty -delete
dh_strip
dh_compress
dh_fixperms
dh_shlibdeps
dh_gencontrol
dh_installdeb
dh_md5sums
dh_builddeb
binary-indep:
.PHONY: build clean binary-indep binary-arch binary
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment