1
0
Fork 0
dnsjit/debian/rules

24 lines
621 B
Text
Raw Normal View History

#!/usr/bin/make -f
%:
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
rm -f debian/dnsjit/usr/share/doc/dnsjit/README.md
execute_after_dh_installexamples:
# Moving examples
mkdir -p debian/dnsjit/usr/share/doc/dnsjit/examples
mv debian/dnsjit/usr/share/doc/dnsjit/*.lua debian/dnsjit/usr/share/doc/dnsjit/examples