changeset 5406:187bd6ade465

packaging: move docs cleanup target from debian/rules to docs/makefile
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 12 Jul 2020 20:31:02 +0800
parents 175bb63ba111
children 17014c54891c
files debian/rules docs/makefile
diffstat 2 files changed, 9 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/debian/rules	Sat Jul 04 18:19:47 2020 +0800
+++ b/debian/rules	Sun Jul 12 20:31:02 2020 +0800
@@ -30,12 +30,7 @@
 	find debian -path '*/hgext3rd/__init__.py' -delete
 	dh_python3
 
-override_dh_auto_clean: clean-docs
+override_dh_auto_clean:
 	dh_auto_clean
 	rm -f tests/*.err
-
-clean-docs:
-	rm -rf html
-	rm -f docs/static/logo-evolve.ico
-	rm -f docs/tutorials/tutorial.rst
-	rm -f docs/tutorials/topic-tutorial.rst
+	$(MAKE) -C docs clean
--- a/docs/makefile	Sat Jul 04 18:19:47 2020 +0800
+++ b/docs/makefile	Sun Jul 12 20:31:02 2020 +0800
@@ -12,3 +12,10 @@
 
 static/logo-evolve.ico: static/logo-evolve.svg
 	convert -resize 36x36 $< $@
+
+.PHONY: clean
+clean:
+	rm -rf ../html
+	rm -f static/logo-evolve.ico
+	rm -f tutorials/tutorial.rst
+	rm -f tutorials/topic-tutorial.rst