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.
This commit is contained in:
Tzafrir Cohen 2016-06-26 15:48:01 +02:00
parent b2d27998c4
commit 955a8dcb4a
1 changed files with 6 additions and 0 deletions

6
debian/rules vendored
View File

@ -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: