Commit 2ba8ba1a authored by Axel Beckert's avatar Axel Beckert

No more use distclean, just clean, do the reminder in debian/rules

parent 9ae2f360
......@@ -37,7 +37,10 @@ configure-stamp: $(QUILT_STAMPFN)
# Move everything we don't need away
mkdir -pv debian/not-needed-for-build/src/
# Not needed, B-D on getext, likely should be removed
mv -vi intl debian/not-needed-for-build/
mv -vi intl ABOUT-NLS Makefile.in aclocal.m4 config.guess config.sub \
config.h.in configure depcomp install-sh ltmain.sh missing \
mkinstalldirs \
debian/not-needed-for-build/
# Why this?
mv -vi src/ltdl.* debian/not-needed-for-build/src/
# In the future, an external PCRE should be used if possible
......@@ -66,11 +69,12 @@ clean:
dh_testroot
# Generated stuff
rm -rf autom4te.cache m4
cd po && rm -f ${GETTEXT_PO_FILES} stamp-po
cd po && rm -f ${GETTEXT_PO_FILES} stamp-po POTFILES Makefile.in
rm -f ${GETTEXT_TOP_FILES}
# Generated stuff, should be replaced by dh-reconf or so
dh_autoreconf_clean
[ ! -f Makefile ] || $(MAKE) distclean
[ ! -f Makefile ] || $(MAKE) clean
#[ ! -f Makefile ] || $(MAKE) distclean
# Restore as much as possible for easy VCS usage
[ ! -d debian/not-needed-for-build/src/ ] || mv -vi debian/not-needed-for-build/src/* src/
[ ! -d debian/not-needed-for-build/src/ ] || rmdir -v debian/not-needed-for-build/src
......@@ -79,7 +83,9 @@ clean:
#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
#find . -name Makefile.in | xargs -r rm
find . -name .deps -o -name Makefile | xargs -r rm -rv
dh_clean build-stamp configure-stamp
$(MAKE) -f debian/rules unpatch
......
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