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:
parent
3f3913fe3a
commit
c3116772a0
8
Makefile
8
Makefile
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user