Commit 30afd6a6 authored by Axel Beckert's avatar Axel Beckert

Make clean target more robust

parent 571d39c3
......@@ -9,6 +9,7 @@ mp4h (1.3.1-7) UNRELEASED; urgency=low
* Revamp debian/rules:
+ Use dh_auto_{configure,build,install}
+ Support multiarch lib directories
+ Make clean target more robust
-- Axel Beckert <abe@debian.org> Thu, 29 Dec 2011 15:42:25 +0100
......
config.h
config.log
config.status
libtool
stamp-h1
debian/*.tar
doc/mp4h.html
doc/mp4h.pod
modules/intl/gettext.mp4hp
src/mp4h
pcre/chartables.c
pcre/dftables
......@@ -22,9 +22,9 @@ GETTEXT_PO_FILES= Makefile.in.in Rules-quot boldquot.sed \
configure-stamp: $(QUILT_STAMPFN)
# Move everything we don't need away
tar cvf debian/not-needed-for-build.tar \
intl ABOUT-NLS Makefile.in aclocal.m4 config.guess config.sub \
intl ABOUT-NLS po/Makefile.in.in aclocal.m4 config.guess config.sub \
config.h.in configure depcomp install-sh ltmain.sh missing \
mkinstalldirs src/ltdl.*
mkinstalldirs src/ltdl.* `find . -name Makefile.in`
# In the future, an external PCRE should be used if possible
#mv -vi pcre debian/not-needed-for-build/
......@@ -49,33 +49,21 @@ configure-stamp: $(QUILT_STAMPFN)
clean:
dh_testdir
dh_testroot
# Generated stuff
rm -rf autom4te.cache m4
# Generated stuff, should be replaced by dh-reconf or so
ACLOCAL=aclocal-1.9 AUTOMAKE=automake-1.9 dh_autoreconf_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
cd po && rm -f ${GETTEXT_PO_FILES} stamp-po POTFILES Makefile.in
rm -f ${GETTEXT_TOP_FILES}
# Restore as much as possible for easy VCS usage
[ ! -f debian/not-needed-for-build.tar ] || tar xvf debian/not-needed-for-build.tar
#[ ! -f Makefile ] || $(MAKE) clean
[ ! -f debian/needed-after-clean.tar ] || tar xvf debian/needed-after-clean.tar
#[ ! -f Makefile ] || $(MAKE) distclean
#rm -f \
# aclocal.m4 config.guess config.h.in config.sub configure depcomp \
# install-sh ltmain.sh missing mkinstalldirs
rm -vf config.h config.log config.status libtool stamp-h1 debian/*.tar \
doc/mp4h.html doc/mp4h.pod modules/intl/gettext.mp4hp src/mp4h \
pcre/chartables.c pcre/dftables
#find . -name Makefile.in | xargs -r rm
[ ! -f debian/not-needed-for-build.tar ] || tar xvf debian/not-needed-for-build.tar
find . -name .deps -o -name .libs | xargs -r rm -rv
find . -not -path './debian/*' \
-name '*.[ao13]' \
-o -name '*.l[ao]' \
-o -name Makefile \
| xargs -r rm -v
dh_clean build-stamp configure-stamp
'(' -name '*.[ao13]' \
-o -name '*.l[ao]' \
-o -name Makefile ')' \
-delete
dh_clean
$(MAKE) -f debian/rules unpatch
install: build-stamp
......
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