* Improve the clean rule

This commit is contained in:
Sylvestre Ledru 2021-04-15 13:28:37 +02:00
parent 7034c123dc
commit e57e0ef8a1
2 changed files with 13 additions and 0 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
llvm-toolchain-12 (1:12.0.0-3) UNRELEASED; urgency=medium
[ Matthias Klose ]
* Improve the clean rule
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 15 Apr 2021 13:27:57 +0200
llvm-toolchain-12 (1:12.0.0-1) unstable; urgency=medium
* New upstream release

6
debian/rules vendored
View File

@ -915,5 +915,11 @@ override_dh_auto_clean:
if test -f lld/docs/ld.lld-$(LLVM_VERSION).1; then \
mv lld/docs/ld.lld-$(LLVM_VERSION).1 lld/docs/ld.lld.1; \
fi
for f in debian/*.in; do \
f2=$$(echo $$f | sed 's/\.in$$//;s/X\.Y/$(LLVM_VERSION)/'); \
rm -f $$f2; \
done
: # for some reason, the docs are written to debian/usr and debian/man ...
rm -rf debian/usr debian/man
.PHONY: override_dh_strip preconfigure debian-full-build debian-libfuzzer-build debian-libcxx-build debian-libcxxabi-build