Removing generated files to fix FTBFS when build twice in a row (Closes: #1044510).

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 08:34:39 +01:00
parent 268fd6b214
commit 7ca6e7a977
Signed by: daniel
GPG key ID: FBB4F0E80A80222F

9
debian/rules vendored
View file

@ -3,6 +3,15 @@
%:
dh ${@}
execute_after_dh_auto_clean:
# remove generated files
rm -f src/core/compat.hh
rm -f src/core/log_errstr.c
for file in $$(find . -type f -name "*.in"); \
do \
rm -f "$$(dirname "$${file}")"/"$$(basename "$${file}" .in)"; \
done
execute_after_dh_install:
# Removing useless files
rm -f debian/dnsjit/usr/share/doc/dnsjit/LICENSE