From 955a8dcb4a1cf27141884d4f1ee96e662e8464db Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 26 Jun 2016 15:48:01 +0200 Subject: [PATCH] fall back to running 'clean' from Makefile.legacy If Makefile wasn't yet created, it's possible that we may want to run the 'clean' target of Makefile.legacy to clean generated HTML docs. --- debian/rules | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/rules b/debian/rules index 7649b33..40f3691 100755 --- a/debian/rules +++ b/debian/rules @@ -29,6 +29,12 @@ override_dh_auto_build: # FIXME: xpp/README.Astribank.html cp dahdi.rules debian/dahdi.udev +override_dh_auto_clean: +ifeq ($(wildcard Makefile),) + $(MAKE) -f Makefile.legacy clean +else + $(MAKE) clean +endif override_dh_auto_install: # also run the 'config' target, in addition to the 'install' target: