1
0
mirror of https://git.disroot.org/80486DX2-66/polonium.git synced 2024-11-09 15:02:20 +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 define rmfiles_if_exist
@for file in $1; do \ @for file in $1; do \
if [ -e $$file ]; then \ if [ -e $$file ]; then \
echo "Removing file $$file"; \ printf -- "Removing file $$file\n"; \
rm $$file; \ rm $$file; \
fi; \ fi; \
done done
@ -58,9 +58,9 @@ define rmdirs
if [ -d "$$dir" ]; then \ if [ -d "$$dir" ]; then \
if [ -z "$$(find "$$dir" -mindepth 1 -maxdepth 1 -print -quit)" ]; \ if [ -z "$$(find "$$dir" -mindepth 1 -maxdepth 1 -print -quit)" ]; \
then \ then \
echo "Removing empty directory $$dir"; \ printf -- "Removing empty directory $$dir\n"; \
else \ else \
echo "Removing non-empty directory $$dir"; \ printf -- "Removing non-empty directory $$dir\n"; \
fi; \ fi; \
rm -r $$dir; \ rm -r $$dir; \
fi; \ fi; \
@ -72,7 +72,7 @@ define rmdirs_if_empty
if [ -d "$$dir" ]; then \ if [ -d "$$dir" ]; then \
if [ -z "$$(find "$$dir" -mindepth 1 -maxdepth 1 -print -quit)" ]; \ if [ -z "$$(find "$$dir" -mindepth 1 -maxdepth 1 -print -quit)" ]; \
then \ then \
echo "Removing empty directory $$dir"; \ printf -- "Removing empty directory $$dir\n"; \
rm -r $$dir; \ rm -r $$dir; \
fi; \ fi; \
fi; \ fi; \