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