From 537d8b79941377b800966697f9c3eadbda34a899 Mon Sep 17 00:00:00 2001 From: Emmanuel Papin Date: Thu, 27 Nov 2014 21:24:20 +0100 Subject: [PATCH] Add instructions in override_dh_clean to delete remaining Makefiles --- distros/debian8/rules | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/distros/debian8/rules b/distros/debian8/rules index 2e19e1baf..42c4af380 100755 --- a/distros/debian8/rules +++ b/distros/debian8/rules @@ -51,6 +51,17 @@ override_dh_clean: # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean dh_clean src/zm_config_defines.h + # + # Delete remaining auto-generared Makefile if Makefile.in exists + find $(CURDIR)/ -type f -name "Makefile" | while read file; do \ + [ -f $$file.in ] && rm -f $$file; \ + done || true + # + # Delete remaining auto-generared Makefile.in if Makefile.am exists + find $(CURDIR)/ -type f -name "Makefile.in" | while read filein; do \ + fileam=`echo $$filein | sed 's/\(.*\)\.in/\1\.am/'`; \ + [ -f $$fileam ] && rm -f $$filein; \ + done || true override_dh_install: #