1
0
mirror of https://git.disroot.org/80486DX2-66/polonium.git synced 2024-11-08 13:42:31 +05:30

Makefile: do not use echo

Always use `printf --` instead
This commit is contained in:
Intel A80486DX2-66 2024-07-09 00:20:28 +03:00
parent 3f3913fe3a
commit c3116772a0
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -47,7 +47,7 @@ $(OBJDIR)/%.o: $(SRCDIR)/%.c
define rmfiles_if_exist
@for file in $1; do \
if [ -e $$file ]; then \
echo "Removing file $$file"; \
printf -- "Removing file $$file\n"; \
rm $$file; \
fi; \
done
@ -58,9 +58,9 @@ define rmdirs
if [ -d "$$dir" ]; then \
if [ -z "$$(find "$$dir" -mindepth 1 -maxdepth 1 -print -quit)" ]; \
then \
echo "Removing empty directory $$dir"; \
printf -- "Removing empty directory $$dir\n"; \
else \
echo "Removing non-empty directory $$dir"; \
printf -- "Removing non-empty directory $$dir\n"; \
fi; \
rm -r $$dir; \
fi; \
@ -72,7 +72,7 @@ define rmdirs_if_empty
if [ -d "$$dir" ]; then \
if [ -z "$$(find "$$dir" -mindepth 1 -maxdepth 1 -print -quit)" ]; \
then \
echo "Removing empty directory $$dir"; \
printf -- "Removing empty directory $$dir\n"; \
rm -r $$dir; \
fi; \
fi; \